protected final void set(final Connection connection, final Object message, final CompletionHandler completionHandler) { checkRecycled(); this.connection = connection; this.message = message; this.completionHandler = completionHandler; }
public AsyncQueueRecord(final Connection connection, final Object message, final CompletionHandler completionHandler) { set(connection, message, completionHandler); }
/** * Set current task element. * @param task current element. */ public void setCurrentElement(final E task) { currentElement = task; if (task != null && isClosed && currentElementUpdater.compareAndSet(this, task, null)) { task.notifyFailure(new IOException("Connection closed")); } }
@SuppressWarnings("unchecked") public final void notifyIncomplete() { if (completionHandler != null) { completionHandler.updated(getCurrentResult()); } }
/** * Set current task element. * @param task current element. */ public void setCurrentElement(final E task) { currentElement = task; if (task != null && isClosed && currentElementUpdater.compareAndSet(this, task, null)) { task.notifyFailure(new IOException("Connection closed")); } }
@SuppressWarnings("unchecked") public final void notifyIncomplete() { if (completionHandler != null) { completionHandler.updated(getCurrentResult()); } }
/** * Set current task element. * @param task current element. */ public void setCurrentElement(final E task) { currentElement = task; if (task != null && isClosed && currentElementUpdater.compareAndSet(this, task, null)) { task.notifyFailure(new IOException("Connection closed")); } }
@SuppressWarnings("unchecked") public final <T> T getMessage() { checkRecycled(); return (T) message; }
public AsyncQueueRecord(final Connection connection, final Object message, final CompletionHandler completionHandler) { set(connection, message, completionHandler); }
@SuppressWarnings("unchecked") public final void notifyIncomplete() { if (completionHandler != null) { completionHandler.updated(getCurrentResult()); } }
/** * Set current task element. * @param task current element. */ public void setCurrentElement(final E task) { currentElement = task; if (task != null && isClosed && currentElementUpdater.compareAndSet(this, task, null)) { task.notifyFailure(new IOException("Connection closed")); } }
protected final void set(final Connection connection, final Object message, final CompletionHandler completionHandler) { checkRecycled(); this.connection = connection; this.message = message; this.completionHandler = completionHandler; }
public AsyncQueueRecord(final Connection connection, final Object message, final CompletionHandler completionHandler) { set(connection, message, completionHandler); }
@SuppressWarnings("unchecked") public final void notifyIncomplete() { if (completionHandler != null) { completionHandler.updated(getCurrentResult()); } }
/** * Set current task element. * @param task current element. */ public void setCurrentElement(final E task) { currentElement = task; if (task != null && isClosed && currentElementUpdater.compareAndSet(this, task, null)) { task.notifyFailure(new IOException("Connection closed")); } }
protected final void set(final Connection connection, final Object message, final CompletionHandler completionHandler) { checkRecycled(); this.connection = connection; this.message = message; this.completionHandler = completionHandler; }
public AsyncQueueRecord(final Connection connection, final Object message, final CompletionHandler completionHandler) { set(connection, message, completionHandler); }
@SuppressWarnings("unchecked") public final void notifyIncomplete() { if (completionHandler != null) { completionHandler.updated(getCurrentResult()); } }
/** * Set current task element. * @param task current element. */ public void setCurrentElement(final E task) { currentElement = task; if (task != null && isClosed && currentElementUpdater.compareAndSet(this, task, null)) { task.notifyFailure(new IOException("Connection closed")); } }
protected final void set(final Connection connection, final Object message, final CompletionHandler completionHandler) { checkRecycled(); this.connection = connection; this.message = message; this.completionHandler = completionHandler; }