Method Summary |
|
public void | close() Closes this connection (i.e. |
public void | close(boolean remove) Closes this connection (i.e. |
abstract public void | done() Signals to the connection that remote call is done. |
public Endpoint | getEndpoint() Returns endpoint this connection connected to. |
abstract public long | getExpiration() If this connection is available returns time when it could be closed
(if it'll be still in available state). |
public InputStream | getInputStream() Returns open input stream. |
public OutputStream | getOutputStream() Returns open output stream. |
abstract public boolean | isAvailable() Returns true if this connection is reusable and has no active
remote calls. |
abstract public boolean | isReusable() True if this connection could be reused for another remote call. |
public void | releaseOutputStream() By default flushes output stream of this connection. |
abstract public boolean | reuse() If this connection is reusable and available then reuse it. |
public void | sendDGCAck(UID uid) Opens a connection to the given Endpoint and writes DGC ack there. |
abstract protected int | serverProtocolAck() Acknowledge protocol with server side. |
public String | toString() Returns string representation of this connection. |
protected void | writeHeader(DataOutputStream dout) Writes RMI protocol header and RMI protocol version to the open
OutputStream. |