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, isOpen
public WrapperSocketChannel(SocketChannel wrappedChannel, SelectionRegistration registration)
wrappedChannel
- The source channel.registration
- The NIO registration.public SelectionRegistration getRegistration()
getRegistration
in interface SelectionChannel
public boolean isBlocking()
isBlocking
in interface BlockableChannel
Copyright © 2005–2013. All rights reserved.