void done() { for (Task callback : callbacks) { callback.run(); } } }
void onStop(Task onCompleted) { trace("CANCELED.onStop"); if( !disposed ) { disposed = true; dispose(); } onCompleted.run(); } }
@Override public void destroy(Task cb) { cb.run(); } }
public void run() { synchronized (lock) { if (HeartBeatMonitor.this.session == session) { func.run(); } } } });
void done() { for (Task callback : callbacks) { callback.run(); } } }
@Override public void run() { ack_connect.run(); } });
void onStop(Task onCompleted) { trace("CANCELED.onStop"); if( !disposed ) { disposed = true; dispose(); } onCompleted.run(); } }
public void run() { if( cancelHandler!=null ) { cancelHandler.run(); } } });
public void run() { for ( Task task: tasks) { task.run(); } } });
public void run() { try { channel.close(); } catch (IOException e) { } onCompleted.run(); } });
public void run() { if( counter.decrementAndGet()<=0 ) { runnable.run(); } } public String toString() {
public void run() { try { task.run(); } finally { done.countDown(); } } };
public void run() { if( counter.decrementAndGet()==0 ) { runnable.run(); } } public String toString() {
public void run() { if (lastWriteCounter == codec.getWriteCounter()) { onKeepAlive.run(); } scheduleCheckWrites(session); } };
public void run() { if (lastReadCounter == codec.getReadCounter() && !readSuspendedInterval && readSuspendCount == 0) { onDead.run(); } readSuspendedInterval = false; scheduleCheckReads(session); } };
public void processRemoteClose(Endpoint endpoint, Task onComplete) { endpoint.close(); onComplete.run(); }
private void updateInterest() { if( isCurrent(selectorQueue) ) { updateInterestTask.run(); } else { selectorQueue.execute(updateInterestTask); } }
public void run() { if( !isSuspended() && !isCanceled()) { if(DEBUG) debug("fired %s", opsToString(readyOps)); try { eventHandler.run(); } catch (Throwable e) { Thread thread = Thread.currentThread(); thread.getUncaughtExceptionHandler().uncaughtException(thread, e); } updateInterest(); } } });
public void processRemoteOpen(Endpoint endpoint, Task onComplete) { ErrorCondition condition = endpoint.getCondition(); condition.setCondition(Symbol.valueOf("error")); condition.setDescription("Not supported"); endpoint.close(); onComplete.run(); }
@Override public void run() { for (BindAddress address : addresses) { host().router().bind(new BindAddress[]{address}, mqtt_consumer(), security_context, Scala2Java.<Option<String>>noopFn1()); } on_subscribed.run(); } });