org.objectweb.jonathan.protocols.multiplex.lib
Class SimplePolicyFactory
java.lang.Object
org.objectweb.jonathan.protocols.multiplex.lib.SimplePolicyFactory
- All Implemented Interfaces:
- MultiplexingPolicyFactory
public class SimplePolicyFactory
- extends Object
- implements MultiplexingPolicyFactory
This is a naive implementation of a multiplexing policy. It always
returns the first lower level session, and ignores feedback.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimplePolicyFactory
public SimplePolicyFactory()
newPolicy
public MultiplexingPolicy newPolicy(Session_High[] sessions,
Protocol[] protocols)
- Description copied from interface:
MultiplexingPolicyFactory
- Creates a new MultiplexingPolicy instance.
- Specified by:
newPolicy
in interface MultiplexingPolicyFactory
- Parameters:
sessions
- the lower level Session_Highs.protocols
- the protocols corresponding to the sessions,
in the same order.
- Returns:
- a new MultiplexingPolicy.