Save This Page
Home » HttpComponents-Core-4.0.1 » org.apache.http.nio » [javadoc | source]
org.apache.http.nio
public interface: IOControl [javadoc | source]

All Known Implementing Classes:
    DefaultNHttpClientConnection, LoggingNHttpServerConnection, NHttpClientIOTarget, NHttpServerIOTarget, LoggingNHttpClientConnection, NHttpServerConnection, NHttpConnectionBase, NHttpConnection, NHttpClientConnection, DefaultNHttpServerConnection

Connection input/output control interface. It can be used to control interest in I/O event notifications for non-blocking HTTP connections.

Implementations of this interface are expected to be threading safe. Therefore it can be used to request / suspend I/O event notifications from any thread of execution.

Method from org.apache.http.nio.IOControl Summary:
requestInput,   requestOutput,   shutdown,   suspendInput,   suspendOutput
Method from org.apache.http.nio.IOControl Detail:
 public  void requestInput()
    Requests event notifications to be triggered when the underlying channel is ready for input operations.
 public  void requestOutput()
    Requests event notifications to be triggered when the underlying channel is ready for output operations.
 public  void shutdown() throws IOException
    Shuts down the underlying channel.
 public  void suspendInput()
    Suspends event notifications about the underlying channel being ready for input operations.
 public  void suspendOutput()
    Suspends event notifications about the underlying channel being ready for output operations.