Reduce timing for quicker responces
This commit is contained in:
@ -48,7 +48,7 @@ public class delegationServices {
|
||||
|
||||
System.out.println("Delegation Has Started");
|
||||
if(requesttype == 0 || requesttype == 1 || requesttype == 2 || requesttype == 3 || requesttype == 4 || requesttype == 5 || requesttype == 6 || requesttype ==7 || requesttype == 8 || requesttype ==9 || requesttype ==10 || requesttype ==11 || requesttype ==12) {
|
||||
if (requesttype == 7) {
|
||||
if (requesttype == 7 || requesttype == 12) {
|
||||
System.out.println("An Excluded Request (7MAL) Has Been Detected, Ignoring");
|
||||
}
|
||||
|
||||
|
@ -9,11 +9,11 @@ public class delegationTimer {
|
||||
{
|
||||
final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1);
|
||||
final Runnable runnable = new Runnable() {
|
||||
int countdownStarter = 5;
|
||||
int countdownStarter = 1;
|
||||
public void run() {
|
||||
countdownStarter--;
|
||||
if (countdownStarter <= 0) {
|
||||
countdownStarter = 5;
|
||||
countdownStarter = 1;
|
||||
delegationServices.delegate();
|
||||
scheduler.shutdown();
|
||||
}
|
||||
@ -25,12 +25,13 @@ public class delegationTimer {
|
||||
{
|
||||
final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1);
|
||||
final Runnable runnable = new Runnable() {
|
||||
int countdownStarter = 60;
|
||||
int countdownStarter = 15;
|
||||
public void run() {
|
||||
countdownStarter--;
|
||||
if (countdownStarter <= 0) {
|
||||
countdownStarter = 60;
|
||||
countdownStarter = 15;
|
||||
delegationServices.Clear();
|
||||
//flushes all requests from the server
|
||||
scheduler.shutdown();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user