-
- All Known Implementing Classes:
SniCompletionEvent
,SslCloseCompletionEvent
,SslCompletionEvent
,SslHandshakeCompletionEvent
,WebSocketClientHandshakeCompletionEvent
,WebSocketHandshakeCompletionEvent
,WebSocketServerHandshakeCompletionEvent
public interface ProtocolEvent
An 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 Throwable
cause()
Returns the cause of the failure, ornull
ifisSuccess()
.default boolean
isFailed()
Returnstrue
if the event was sent because of some unsuccessful protocol event.default boolean
isSuccess()
Returnstrue
if the event was sent because of some successful protocol event.
-
-
-
Method Detail
-
isSuccess
default boolean isSuccess()
Returnstrue
if the event was sent because of some successful protocol event.- Returns:
true
when success,false
otherwise.
-
isFailed
default boolean isFailed()
Returnstrue
if the event was sent because of some unsuccessful protocol event.- Returns:
true
when unsuccessful,false
otherwise.
-
cause
Throwable cause()
Returns the cause of the failure, ornull
ifisSuccess()
.- Returns:
- the
Throwable
ifisFailed()
ornull
ifisSuccess()
.
-
-