org.apache.http.nio
Interface IOControl

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

public interface IOControl

Connection input/output control interface. It can be used to request or temporarily suspend event notifications that are triggered when the underlying channel is ready for input / output operations.

Author:
Oleg Kalnichevski

Method Summary
 void requestInput()
          Requests event notifications to be triggered when the underlying channel is ready for input oprtations.
 void requestOutput()
          Requests event notifications to be triggered when the underlying channel is ready for output oprtations.
 void shutdown()
          Shuts down the underlying channel.
 void suspendInput()
          Suspends event notifications about the underlying channel being ready for input operations.
 void suspendOutput()
          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 oprtations.


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 oprtations.


suspendOutput

void suspendOutput()
Suspends event notifications about the underlying channel being ready for output operations.


shutdown

void shutdown()
              throws java.io.IOException
Shuts down the underlying channel.

Throws:
java.io.IOException


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.