Project JXTA

net.jxta.impl.util.pipe.reliable
Interface Outgoing

All Known Implementing Classes:
OutgoingMsgrAdaptor, OutgoingPipeAdaptor, OutgoingPipeAdaptorSync

public interface Outgoing

This interface specifies the methods that must be implemented by a connection in order to be able to reliably deliver messages over the connection.


Method Summary
 void close()
          Close the connection.
 long getIdleTimeout()
          Amount of time after which a connection is considered idle and may be scavenged.
 long getLastAccessed()
          Get the time when this connection was last used.
 long getMaxRetryAge()
          Amount if time during which retries may remain queued for retransmission.
 long getMinIdleReconnectTime()
          Amount of a connection must be idle before a reconnection attempt will be considered.
 boolean send(Message msg)
          Send a message to the remote peer.
 void setLastAccessed(long time)
          Set the time when this connection was last used.
 String toString()
          Return a human-friendly description of this connection.
 

Method Detail

send

boolean send(Message msg)
             throws IOException
Send a message to the remote peer.

Throws:
IOException

close

void close()
           throws IOException
Close the connection.

Throws:
IOException

getMinIdleReconnectTime

long getMinIdleReconnectTime()
Amount of a connection must be idle before a reconnection attempt will be considered.


getIdleTimeout

long getIdleTimeout()
Amount of time after which a connection is considered idle and may be scavenged.


getMaxRetryAge

long getMaxRetryAge()
Amount if time during which retries may remain queued for retransmission. If still unACKed after this amount of time then the connection is considered dead.


getLastAccessed

long getLastAccessed()
Get the time when this connection was last used.


setLastAccessed

void setLastAccessed(long time)
Set the time when this connection was last used.


toString

String toString()
Return a human-friendly description of this connection.

Overrides:
toString in class Object

JXTA J2SE