public class WrapperSocketChannel extends WrapperChannel<SocketChannel> implements SelectionChannel
| Constructor and Description |
|---|
WrapperSocketChannel(SocketChannel wrappedChannel,
SelectionRegistration registration)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SelectionRegistration |
getRegistration()
Returns the NIO registration.
|
boolean |
isBlocking()
Indicates if the channel is blocking.
|
close, getWrappedChannel, isOpenpublic WrapperSocketChannel(SocketChannel wrappedChannel, SelectionRegistration registration)
wrappedChannel - The source channel.registration - The NIO registration.public SelectionRegistration getRegistration()
getRegistration in interface SelectionChannelpublic boolean isBlocking()
isBlocking in interface BlockableChannelCopyright © 2005–2016. All rights reserved.