Class WrapperSocketChannel
- java.lang.Object
-
- org.restlet.ext.nio.internal.channel.WrapperChannel<java.nio.channels.SocketChannel>
-
- org.restlet.ext.nio.internal.channel.WrapperSocketChannel
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.nio.channels.Channel,BlockableChannel,SelectionChannel
- Direct Known Subclasses:
ReadableSocketChannel,WritableSocketChannel
@Deprecated public class WrapperSocketChannel extends WrapperChannel<java.nio.channels.SocketChannel> implements SelectionChannel
Deprecated.Will be removed to favor lower-level network extensions allowing more control at the Restlet API level.Readable byte channel based on a source socket channel that must only be partially read.
-
-
Field Summary
Fields Modifier and Type Field Description private SelectionRegistrationregistrationDeprecated.The NIO registration.
-
Constructor Summary
Constructors Constructor Description WrapperSocketChannel(java.nio.channels.SocketChannel wrappedChannel, SelectionRegistration registration)Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SelectionRegistrationgetRegistration()Deprecated.Returns the NIO registration.booleanisBlocking()Deprecated.Indicates if the channel is blocking.-
Methods inherited from class org.restlet.ext.nio.internal.channel.WrapperChannel
close, getWrappedChannel, isOpen
-
-
-
-
Field Detail
-
registration
private SelectionRegistration registration
Deprecated.The NIO registration.
-
-
Constructor Detail
-
WrapperSocketChannel
public WrapperSocketChannel(java.nio.channels.SocketChannel wrappedChannel, SelectionRegistration registration)Deprecated.Constructor.- Parameters:
wrappedChannel- The source channel.registration- The NIO registration.
-
-
Method Detail
-
getRegistration
public SelectionRegistration getRegistration()
Deprecated.Returns the NIO registration.- Specified by:
getRegistrationin interfaceSelectionChannel- Returns:
- The NIO registration.
-
isBlocking
public boolean isBlocking()
Deprecated.Indicates if the channel is blocking.- Specified by:
isBlockingin interfaceBlockableChannel- Returns:
- True if the channel is blocking.
-
-