public class UnqueueMessageOnAckCallback extends java.lang.Object implements AsyncMessageCallback
| Constructor and Description |
|---|
UnqueueMessageOnAckCallback(DarknetPeerNode pn,
int extraPeerDataFileNumber) |
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledged()
Called when the packet is actually acknowledged by the
other node.
|
void |
disconnected()
Called if the node is disconnected while the packet is
queued, or after it has been sent.
|
void |
fatalError()
Called if the packet is lost due to an internal error.
|
void |
sent()
Called when the packet actually leaves the node.
|
java.lang.String |
toString() |
public UnqueueMessageOnAckCallback(DarknetPeerNode pn, int extraPeerDataFileNumber)
public java.lang.String toString()
toString in class java.lang.Objectpublic void sent()
AsyncMessageCallbacksent in interface AsyncMessageCallbackpublic void acknowledged()
AsyncMessageCallbackacknowledged in interface AsyncMessageCallbackpublic void disconnected()
AsyncMessageCallbackdisconnected in interface AsyncMessageCallbackpublic void fatalError()
AsyncMessageCallbackfatalError in interface AsyncMessageCallback