Class WrapperSelectionChannel<T extends SelectionChannel>
- java.lang.Object
-
- org.restlet.ext.nio.internal.channel.WrapperChannel<T>
-
- org.restlet.ext.nio.internal.channel.WrapperSelectionChannel<T>
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.nio.channels.Channel,BlockableChannel,SelectionChannel
- Direct Known Subclasses:
BufferedSelectionChannel,TraceChannel
@Deprecated public class WrapperSelectionChannel<T extends SelectionChannel> extends WrapperChannel<T> implements SelectionChannel
Deprecated.Will be removed to favor lower-level network extensions allowing more control at the Restlet API level.Wrapper selection channel.
-
-
Field Summary
Fields Modifier and Type Field Description private SelectionRegistrationregistrationDeprecated.The NIO registration.
-
Constructor Summary
Constructors Constructor Description WrapperSelectionChannel(T wrappedChannel)Deprecated.Constructor.WrapperSelectionChannel(T 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 wrapped channel is blocking.voidsetRegistration(SelectionRegistration registration)Deprecated.Sets the NIO registration.java.lang.StringtoString()Deprecated.-
Methods inherited from class org.restlet.ext.nio.internal.channel.WrapperChannel
close, getWrappedChannel, isOpen
-
-
-
-
Field Detail
-
registration
private volatile SelectionRegistration registration
Deprecated.The NIO registration.
-
-
Constructor Detail
-
WrapperSelectionChannel
public WrapperSelectionChannel(T wrappedChannel)
Deprecated.Constructor.- Parameters:
wrappedChannel- The wrapped channel.
-
WrapperSelectionChannel
public WrapperSelectionChannel(T wrappedChannel, SelectionRegistration registration)
Deprecated.Constructor.- Parameters:
wrappedChannel- The wrapped channel.registration- The selection 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 wrapped channel is blocking.- Specified by:
isBlockingin interfaceBlockableChannel- Returns:
- True if the wrapped channel is blocking.
-
setRegistration
public void setRegistration(SelectionRegistration registration)
Deprecated.Sets the NIO registration.- Parameters:
registration- The NIO registration.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
-