-
- All Known Implementing Classes:
SniCompletionEvent,SslCloseCompletionEvent,SslCompletionEvent,SslHandshakeCompletionEvent,WebSocketClientHandshakeCompletionEvent,WebSocketHandshakeCompletionEvent,WebSocketServerHandshakeCompletionEvent
public interface ProtocolEventAn application-level event propagated via anChannelPipeline, such as a TLS or WebSocket handshake event.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Throwablecause()Returns the cause of the failure, ornullifisSuccess().default booleanisFailed()Returnstrueif the event was sent because of some unsuccessful protocol event.default booleanisSuccess()Returnstrueif the event was sent because of some successful protocol event.
-
-
-
Method Detail
-
isSuccess
default boolean isSuccess()
Returnstrueif the event was sent because of some successful protocol event.- Returns:
truewhen success,falseotherwise.
-
isFailed
default boolean isFailed()
Returnstrueif the event was sent because of some unsuccessful protocol event.- Returns:
truewhen unsuccessful,falseotherwise.
-
cause
Throwable cause()
Returns the cause of the failure, ornullifisSuccess().- Returns:
- the
ThrowableifisFailed()ornullifisSuccess().
-
-