Esempio n. 1
0
 @Override
 public boolean schedule(TimeoutNotifier notifier, int timeout) {
   notifier.getTimeoutAdmin().schedule(notifier, timeout);
   notifier.changeState(Scheduled.getInstance());
   return true;
 }
Esempio n. 2
0
 @Override
 public void close(TimeoutNotifier notifier) {
   notifier.getTimeoutAdmin().cancel(notifier);
   notifier.changeState(Closed.getInstance());
 }
Esempio n. 3
0
 @Override
 public boolean cancel(TimeoutNotifier notifier) {
   notifier.getTimeoutAdmin().cancel(notifier);
   notifier.changeState(Unscheduled.getInstance());
   return true;
 }
Esempio n. 4
0
 @Override
 public boolean schedule(TimeoutNotifier notifier, int timeout) {
   notifier.getTimeoutAdmin().reschedule(notifier, timeout);
   return true;
 }
Esempio n. 5
0
 @Override
 public void close(TimeoutNotifier notifier) {
   notifier.changeState(Closed.getInstance());
 }
Esempio n. 6
0
 @Override
 public boolean reset(TimeoutNotifier notifier) {
   notifier.changeState(Unscheduled.getInstance());
   return true;
 }