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.voidSets theChannelExceptionHandlerthat 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 theChannelExceptionHandlerthat should be used for the channel.By default every
ChannelExceptionexcept forChannelNotSupportedExceptionwill be logged.- Parameters:
handler- The channel exception handler
-