org.apache.http.nio.reactor.ListeningIOReactor |
Known Indirect Subclasses |
ListeningIOReactor represents an I/O reactor capable of listening for incoming connections on one or several ports.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a set of endpoints for this I/O reactor.
| |||||||||||
Opens a new listener endpoint with the given socket address.
| |||||||||||
Suspends the I/O reactor preventing it from accepting new connections on
all active endpoints.
| |||||||||||
Resumes the I/O reactor restoring its ability to accept incoming
connections on all active endpoints.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.apache.http.nio.reactor.IOReactor
|
Returns a set of endpoints for this I/O reactor.
Opens a new listener endpoint with the given socket address. Once the endpoint is fully initialized it starts accepting incoming connections and propagates I/O activity notifications to the I/O event dispatcher.
waitFor()
can be used to wait for the
listener to be come ready to accept incoming connections.
close()
can be used to shut down
the listener even before it is fully initialized.
address | the socket address to listen on. |
---|
Suspends the I/O reactor preventing it from accepting new connections on all active endpoints.
IOException | in case of an I/O error. |
---|
Resumes the I/O reactor restoring its ability to accept incoming connections on all active endpoints.
IOException | in case of an I/O error. |
---|