org.restlet.engine.io
Class WrapperSocketChannel
java.lang.Object
org.restlet.engine.io.WrapperChannel<SocketChannel>
org.restlet.engine.io.WrapperSocketChannel
- All Implemented Interfaces:
- Closeable, Channel, BlockableChannel, SelectionChannel
- Direct Known Subclasses:
- ReadableSocketChannel, WritableSocketChannel
public class WrapperSocketChannel
- extends WrapperChannel<SocketChannel>
- implements SelectionChannel
Readable byte channel based on a source socket channel that must only be
partially read.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WrapperSocketChannel
public WrapperSocketChannel(SocketChannel wrappedChannel,
SelectionRegistration registration)
- Constructor.
- Parameters:
wrappedChannel
- The source channel.registration
- The NIO registration.
getRegistration
public SelectionRegistration getRegistration()
- Returns the NIO registration.
- Specified by:
getRegistration
in interface SelectionChannel
- Returns:
- The NIO registration.
isBlocking
public boolean isBlocking()
- Indicates if the channel is blocking.
- Specified by:
isBlocking
in interface BlockableChannel
- Returns:
- True if the channel is blocking.
Copyright © 2005-2013 Restlet.