org.restlet.engine.io
Class WrapperSelectionChannel<T extends SelectionChannel>

java.lang.Object
  extended by org.restlet.engine.io.WrapperChannel<T>
      extended by org.restlet.engine.io.WrapperSelectionChannel<T>
All Implemented Interfaces:
Closeable, Channel, BlockableChannel, SelectionChannel
Direct Known Subclasses:
BufferedSelectionChannel, TraceChannel

public class WrapperSelectionChannel<T extends SelectionChannel>
extends WrapperChannel<T>
implements SelectionChannel

Wrapper selection channel.

Author:
Jerome Louvel

Constructor Summary
WrapperSelectionChannel(T wrappedChannel)
          Constructor.
WrapperSelectionChannel(T wrappedChannel, SelectionRegistration registration)
          Constructor.
 
Method Summary
 SelectionRegistration getRegistration()
          Returns the NIO registration.
 boolean isBlocking()
          Indicates if the wrapped channel is blocking.
 void setRegistration(SelectionRegistration registration)
          Sets the NIO registration.
 String toString()
           
 
Methods inherited from class org.restlet.engine.io.WrapperChannel
close, getWrappedChannel, isOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.nio.channels.Channel
close, isOpen
 

Constructor Detail

WrapperSelectionChannel

public WrapperSelectionChannel(T wrappedChannel)
Constructor.

Parameters:
wrappedChannel - The wrapped channel.

WrapperSelectionChannel

public WrapperSelectionChannel(T wrappedChannel,
                               SelectionRegistration registration)
Constructor.

Parameters:
wrappedChannel - The wrapped channel.
registration - The selection registration.
Method Detail

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 wrapped channel is blocking.

Specified by:
isBlocking in interface BlockableChannel
Returns:
True if the wrapped channel is blocking.

setRegistration

public void setRegistration(SelectionRegistration registration)
Sets the NIO registration.

Parameters:
registration - The NIO registration.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2013 Restlet.