org.objectweb.jonathan.protocols.multiplex.api

Interface MultiplexingPolicy

public interface MultiplexingPolicy

This interface is the contract passed between a multiplexing policy module and the multiplexing layer. The role of a policy is to provide the multiplexing protocol with the "best-choice" network session to send a given message in.

Method Summary

void
feedback(Session_High session, boolean success)
Informs the Policy of success or failure of a send operation on one of the Session_Highs it manages.
Session_High
getSession_High()
Returns the "best" Session_High in the Policy's list at the time of the asking.

Method Details

feedback

public void feedback(Session_High session,
                     boolean success)
Informs the Policy of success or failure of a send operation on one of the Session_Highs it manages.

Parameters:
session - the Session_High used for sending;
success - true if the send succeeded, false otherwise.


getSession_High

public Session_High getSession_High()
Returns the "best" Session_High in the Policy's list at the time of the asking.

Returns:
a Session_High that is rated "best".