Package org.apache.http.nio
Interface IOControl
-
- All Known Subinterfaces:
NHttpClientConnection,NHttpClientIOTarget,NHttpConnection,NHttpServerConnection,NHttpServerIOTarget
- All Known Implementing Classes:
DefaultNHttpClientConnection,DefaultNHttpServerConnection,NHttpConnectionBase
public interface IOControlConnection 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.
- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrequestInput()Requests event notifications to be triggered when the underlying channel is ready for input operations.voidrequestOutput()Requests event notifications to be triggered when the underlying channel is ready for output operations.voidshutdown()Shuts down the underlying channel.voidsuspendInput()Suspends event notifications about the underlying channel being ready for input operations.voidsuspendOutput()Suspends event notifications about the underlying channel being ready for output operations.
-
-
-
Method Detail
-
requestInput
void requestInput()
Requests event notifications to be triggered when the underlying channel is ready for input operations.
-
suspendInput
void suspendInput()
Suspends event notifications about the underlying channel being ready for input operations.
-
requestOutput
void requestOutput()
Requests event notifications to be triggered when the underlying channel is ready for output operations.
-
suspendOutput
void suspendOutput()
Suspends event notifications about the underlying channel being ready for output operations.
-
shutdown
void shutdown() throws java.io.IOExceptionShuts down the underlying channel.- Throws:
java.io.IOException- in an error occurs
-
-