org.objectweb.jonathan.protocols.multiplex.api
Interface MultiplexingPolicyFactory
- All Known Implementing Classes:
- RandomPolicyFactory, SimplePolicyFactory
public interface MultiplexingPolicyFactory
Classes implementing this interface are able to provide a Multiplex
Protocol with a MultiplexingPolicy in order for the protocol's
Session_High interface to be able to pick a lower level
Session_High to send the message.
newPolicy
MultiplexingPolicy newPolicy(Session_High[] sessions,
Protocol[] protocols)
- Creates a new MultiplexingPolicy instance.
- Parameters:
sessions
- the lower level Session_Highs.protocols
- the protocols corresponding to the sessions,
in the same order.
- Returns:
- a new MultiplexingPolicy.