org.jph.channels.router
Class OutRouterEntry<M>

java.lang.Object
  extended by org.jph.channels.router.OutRouterEntry<M>

public final class OutRouterEntry<M>
extends java.lang.Object

The OutRouterEntry is a entry for in the RoutingOutputChannel. Every OutRouterEntry has 2 fields:

Author:
Peter Veentjer.

Constructor Summary
OutRouterEntry(OutputChannel<M> channel)
          Constructs a OutRouterEntry with a TrueMessagePredicate.
OutRouterEntry(OutputChannel<M> channel, org.jph.collections.predicate.Predicate<M> predicate)
          Constructs a OutRouterEntry with the given OutputChannel and MessagePredicate.
 
Method Summary
 OutputChannel<M> getChannel()
          Returns the OutputChannel where the message can be send to.
 org.jph.collections.predicate.Predicate<M> getPredicate()
          Returns the MessagePredicate that checks if a message can be send to the OutputChannel.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OutRouterEntry

public OutRouterEntry(OutputChannel<M> channel)
Constructs a OutRouterEntry with a TrueMessagePredicate.

Parameters:
channel -
Throws:
java.lang.NullPointerException - if channel is null.

OutRouterEntry

public OutRouterEntry(OutputChannel<M> channel,
                      org.jph.collections.predicate.Predicate<M> predicate)
Constructs a OutRouterEntry with the given OutputChannel and MessagePredicate. If the MessagePredicate is null, a TrueMessagePredicate will be used instead.

Parameters:
channel -
predicate -
Throws:
java.lang.NullPointerException - if channel is null.
Method Detail

getChannel

public OutputChannel<M> getChannel()
Returns the OutputChannel where the message can be send to.


getPredicate

public org.jph.collections.predicate.Predicate<M> getPredicate()
Returns the MessagePredicate that checks if a message can be send to the OutputChannel.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2005 Anchormen. All Rights Reserved.