Top Description Methods
io.netty5.handler.codec

public Interface ProtocolEvent

Imports
io.netty5.channel.ChannelPipeline

An application-level event propagated via an ChannelPipeline, such as a TLS or WebSocket handshake event.

Method Summary

Modifier and TypeMethod and Description
public Throwable

Returns:

the Throwable if isFailed() or null if isSuccess().
cause
()

Returns the cause of the failure, or null if isSuccess().

public default boolean

Returns:

true when unsuccessful, false otherwise.
isFailed
()

Returns true if the event was sent because of some unsuccessful protocol event.

public default boolean

Returns:

true when success, false otherwise.
isSuccess
()

Returns true if the event was sent because of some successful protocol event.

Method Detail

causeback to summary
public Throwable cause()

Returns the cause of the failure, or null if isSuccess().

Returns:Throwable

the Throwable if isFailed() or null if isSuccess().

isFailedback to summary
public default boolean isFailed()

Returns true if the event was sent because of some unsuccessful protocol event.

Returns:boolean

true when unsuccessful, false otherwise.

isSuccessback to summary
public default boolean isSuccess()

Returns true if the event was sent because of some successful protocol event.

Returns:boolean

true when success, false otherwise.