|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Transport
I/O transport. A transport object handles incoming connection requests for
a specific transport type. A Transport must have a public
constructor that takes the following argument:
| Method Summary | |
|---|---|
void |
accept(ConnectionHandler handler)
Start accepting connections. |
Delivery |
getDelivery()
Returns the delivery guarantee for the transport. |
TransportDescriptor |
getDescriptor()
Returns the descriptor for this transport. |
void |
shutdown()
Shutdown the transport. |
| Method Detail |
|---|
TransportDescriptor getDescriptor()
Delivery getDelivery()
void accept(ConnectionHandler handler)
throws IOException
handler's newConnection
method when a connection is received. Once accept has
been called, subsequent invocations will throw an
IllegalStateException. If
shutdown() has been called this method will throw an
IllegalStateException.
handler - the connection handler
IllegalStateException - if the transport has been shutdown or
accept has been called.
IOException - if an I/O error occursvoid shutdown()
shutdown will have no affect.
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||