public static interface MessageOutputStream.WriteStatus
| Modifier and Type | Method and Description |
|---|---|
void |
waitForAccept(int maxWaitMs)
Wait until data write is accepted into outbound queue, indicating space is available.
|
void |
waitForCompletion(int maxWaitMs)
Wait until data write either succeeds or fails (ACK received).
|
boolean |
writeAccepted()
Returns true if the write was accepted by the outbound queue.
|
boolean |
writeFailed()
Returns true if the write operation failed.
|
boolean |
writeSuccessful()
Returns true if the write operation succeeded.
|
void waitForAccept(int maxWaitMs)
throws IOException,
InterruptedException
maxWaitMs - maximum wait time in milliseconds (-1 means wait forever)IOException - if acceptance fails or times outInterruptedException - if waiting thread is interruptedvoid waitForCompletion(int maxWaitMs)
throws IOException,
InterruptedException
maxWaitMs - maximum wait time in milliseconds (-1 means wait forever)IOException - if write fails or times outInterruptedException - if waiting thread is interruptedboolean writeAccepted()
boolean writeFailed()
boolean writeSuccessful()