public class WrapperSelectionChannel<T extends SelectionChannel> extends WrapperChannel<T> implements SelectionChannel
Constructor and Description |
---|
WrapperSelectionChannel(T wrappedChannel)
Constructor.
|
WrapperSelectionChannel(T wrappedChannel,
SelectionRegistration registration)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SelectionRegistration |
getRegistration()
Returns the NIO registration.
|
boolean |
isBlocking()
Indicates if the wrapped channel is blocking.
|
void |
setRegistration(SelectionRegistration registration)
Sets the NIO registration.
|
String |
toString() |
close, getWrappedChannel, isOpen
public WrapperSelectionChannel(T wrappedChannel)
wrappedChannel
- The wrapped channel.public WrapperSelectionChannel(T wrappedChannel, SelectionRegistration registration)
wrappedChannel
- The wrapped channel.registration
- The selection registration.public SelectionRegistration getRegistration()
getRegistration
in interface SelectionChannel
public boolean isBlocking()
isBlocking
in interface BlockableChannel
public void setRegistration(SelectionRegistration registration)
registration
- The NIO registration.Copyright © 2005–2014. All rights reserved.