public class RecordCompletionHandler<A> extends java.lang.Object implements CompletionHandler<A>
CompletionHandler.CompletionType| Constructor and Description |
|---|
RecordCompletionHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
delivered(A attachment) |
void |
failed(A attachment,
java.io.IOException ioException) |
A |
getAttachment() |
java.io.IOException |
getIOException() |
void |
replied(A attachment,
Datagram datagram) |
void |
submitted(A attachment) |
void |
timedOut(A attachment) |
void |
waitUntilDelivered() |
void |
waitUntilFailed() |
void |
waitUntilReplied() |
void |
waitUntilSubmitted() |
void |
waitUntilTimeouted() |
void |
waitUntilTimeouted(java.nio.channels.Selector selector) |
public void delivered(A attachment)
delivered in interface CompletionHandler<A>public void failed(A attachment, java.io.IOException ioException)
failed in interface CompletionHandler<A>public A getAttachment()
public java.io.IOException getIOException()
public void replied(A attachment, Datagram datagram)
replied in interface CompletionHandler<A>public void submitted(A attachment)
submitted in interface CompletionHandler<A>public void timedOut(A attachment)
timedOut in interface CompletionHandler<A>public void waitUntilDelivered()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void waitUntilFailed()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void waitUntilReplied()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void waitUntilSubmitted()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void waitUntilTimeouted()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void waitUntilTimeouted(java.nio.channels.Selector selector)
throws java.lang.InterruptedException
java.lang.InterruptedException