public static interface WebSocketWriteCompleteListener.WriteCompleteResult
Modifier and Type | Field and Description |
---|---|
static WebSocketWriteCompleteListener.WriteCompleteResult |
SUCCEEDED
Constant for succeeded result.
|
Modifier and Type | Method and Description |
---|---|
static WebSocketWriteCompleteListener.WriteCompleteResult |
failed(Throwable t) |
Throwable |
getFailure()
Return the exception in case the write operation failed, @
null otherwise. |
boolean |
isFailed()
Return @
true if the operation failed, false otherwise. |
boolean |
isSuccess()
Return @
true if the operation succeeded, false otherwise. |
static final WebSocketWriteCompleteListener.WriteCompleteResult SUCCEEDED
static WebSocketWriteCompleteListener.WriteCompleteResult failed(Throwable t)
t
- the exception that caused the failure.Throwable getFailure()
null
otherwise.boolean isSuccess()
true
if the operation succeeded, false
otherwise.boolean isFailed()
true
if the operation failed, false
otherwise.Copyright © 2017. All Rights Reserved.