Feat: add static analytic of code
This commit is contained in:
@@ -26,15 +26,15 @@ public class SheepItExceptionServerOverloaded extends SheepItExceptionWithRequir
|
||||
super();
|
||||
}
|
||||
|
||||
public SheepItExceptionServerOverloaded(String message_) {
|
||||
super(message_);
|
||||
public SheepItExceptionServerOverloaded(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public String getHumanText() {
|
||||
@Override public String getHumanText() {
|
||||
return "The server is overloaded and cannot allocate a job. Will try again at %tR";
|
||||
}
|
||||
|
||||
public int getWaitDuration() {
|
||||
@Override public int getWaitDuration() {
|
||||
return 1000 * 60 * ThreadLocalRandom.current().nextInt(10, 30 + 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user