- selector
- the selector with which to register this channel.
- interestSet
- this channel's Java.Nio.Channels.SelectionKey.
- attachment
- the object to attach, can be null.
Documentation for this section has not yet been entered.
Type Reason Java.Nio.Channels.CancelledKeyException if this channel is registered but its key has been canceled. Java.Nio.Channels.ClosedChannelException if this channel is closed. Java.Lang.IllegalArgumentException if interestSet is not supported by this channel. Java.Nio.Channels.IllegalBlockingModeException if this channel is in blocking mode. Java.Nio.Channels.IllegalSelectorException if this channel does not have the same provider as the given selector.
Registers this channel with the specified selector for the specified interest set. If the channel is already registered with the selector, the Java.Nio.Channels.SelectionKey is updated to interestSet and the corresponding selection key is returned. If the channel is not yet registered, this method calls the register method of selector and adds the selection key to this channel's key set.