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

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

Throws:
IOException

close

public void close()
           throws IOException
Close the connection.

Throws:
IOException

getMinIdleReconnectTime

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


getIdleTimeout

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


getMaxRetryAge

public 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

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


setLastAccessed

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


toString

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


JXTA J2SE