Interface Channel
- All Known Subinterfaces:
BasicPacketChannel
,PacketChannel
,RawDataChannel
public interface Channel
Represents a network channel bound to a
ChannelManager
. The channel
can be used to send and receive data.-
Method Summary
Modifier and TypeMethodDescriptionkey()
Gets this channel's bound key.manager()
Gets the manager that this channel is bound to.void
Sets theChannelExceptionHandler
that should be used for the channel.
-
Method Details
-
manager
ChannelManager manager()Gets the manager that this channel is bound to.- Returns:
- The manager
-
key
ResourceKey key()Gets this channel's bound key.- Returns:
- The channel key
-
setExceptionHandler
Sets theChannelExceptionHandler
that should be used for the channel.By default every
ChannelException
except forChannelNotSupportedException
will be logged.- Parameters:
handler
- The channel exception handler
-