org.jboss.soa.esb.couriers
Class CourierCollection

java.lang.Object
  extended by org.jboss.soa.esb.couriers.CourierCollection

public class CourierCollection
extends java.lang.Object

Handle delivery of a message to a collection of Couriers.

Author:
kevin

Constructor Summary
CourierCollection(java.util.Collection<EPR> eprs)
          Construct the courier collection.
 
Method Summary
 void cleanup()
          Cleanup and release all couriers.
 boolean deliver(Message message)
          Deliver the message to the list of couriers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CourierCollection

public CourierCollection(java.util.Collection<EPR> eprs)
                  throws MalformedEPRException,
                         CourierException
Construct the courier collection.

Parameters:
eprs - The collection of courier eprs.
Throws:
MalformedEPRException
CourierException
Method Detail

deliver

public boolean deliver(Message message)
                throws CourierException,
                       MalformedEPRException
Deliver the message to the list of couriers.

Parameters:
message - The message to deliverAsync.
Throws:
CourierException - For processing errors.
MalformedEPRException - For configuration errors.

cleanup

public void cleanup()
Cleanup and release all couriers.