org.instrumentmiddleware.cima.transport.delivery
Interface IDeliveryStrategy
- All Superinterfaces:
- java.util.concurrent.Callable<org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel>
- All Known Implementing Classes:
- AbstractDeliveryStrategy, InfiniteTryDeliveryStrategy, TooBadDeliveryStrategy
public interface IDeliveryStrategy
- extends java.util.concurrent.Callable<org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel>
An IDeliveryStrategy is responsible for ensuring (or attempting) delivery of a parcel
to its destination(s).
Each time a parcel needs delivery, a new thread is created to allow the strategy to
attempt delivery of the parcel. This has the potential to become a resource bottleneck
at which point an alternative design should be considered (maybe the IDeliveryStrategy
could be a singleton thread in the system and maintain its own thread pool)
When a strategy is asked to run, it should attempt to deliver the parcel to each
session in registered parcel.
- Author:
- andrew
| Methods inherited from interface java.util.concurrent.Callable |
call |
setRegisteredParcel
void setRegisteredParcel(IRegisteredParcel parcel)
- Sets the parcel to be delivered
- Parameters:
parcel -
deliver
org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel deliver()
Copyright © 2008. All Rights Reserved.