/** * Called, when the clock is no longer used. */ public void dispose() { executor.shutdown(); // Wake up timer thread, if currently waiting. synchronized(this) { this.notify(); } // notificator.shutdown(null); }
/** * Called, when the clock is no longer used. */ public void dispose() { executor.shutdown(); // Wake up timer thread, if currently waiting. synchronized(this) { timers.clear(); // Todo: should still send notifications? this.notify(); } // notificator.shutdown(null); }
/** * Called, when the clock is no longer used. */ public void dispose() { executor.shutdown(); // Wake up timer thread, if currently waiting. synchronized(this) { timers.clear(); // Todo: should still send notifications? this.notify(); } // notificator.shutdown(null); }
public IFuture<Void> shutdown() { if(task instanceof AbstractComponentFeature && ((AbstractComponentFeature)task).getComponent().getComponentIdentifier().equals(getServiceIdentifier().getProviderId())) { return IFuture.DONE; } else { return super.shutdown(); } } };
exe.shutdown().addResultListener(lis);
public void customResultAvailable(Void result) { Future<Void> idf = null; synchronized(this) { if(!customIsValid()) { ret.setException(new RuntimeException("Not running.")); } else { state = State.SHUTDOWN; executor.shutdown().addResultListener(new DelegationResultListener<Void>(ret)); queue = null; idf = idlefuture; } } if(idf!=null) idf.setException(new RuntimeException("Shutdown")); } });
public void customResultAvailable(Void result) { Future<Void> idf = null; synchronized(this) { if(!customIsValid()) // if(!running || shutdown) { ret.setException(new RuntimeException("Not running.")); } else { running = false; shutdown = true; executor.shutdown().addResultListener(new DelegationResultListener<Void>(ret)); queue = null; idf = idlefuture; } } if(idf!=null) idf.setException(new RuntimeException("Shutdown")); } });
public void customResultAvailable(Void result) { Future<Void> idf = null; synchronized(this) { if(!customIsValid()) // if(!running || shutdown) { ret.setException(new RuntimeException("Not running.")); } else { running = false; shutdown = true; executor.shutdown().addResultListener(new DelegationResultListener<Void>(ret)); queue = null; idf = idlefuture; } } if(idf!=null) idf.setException(new RuntimeException("Shutdown")); } });
exe.shutdown().addResultListener(lis);
exe.shutdown().addResultListener(lis);
exe.shutdown().addResultListener(lis);
exe.shutdown().addResultListener(lis);
exe.shutdown().addResultListener(lis);