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, isOpenpublic 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 SelectionChannelpublic boolean isBlocking()
isBlocking in interface BlockableChannelpublic void setRegistration(SelectionRegistration registration)
registration - The NIO registration.Copyright © 2005–2015. All rights reserved.