com.emarsys.ecommon.time.schedule
Interface QueueSchedulingContext<T>

All Known Implementing Classes:
QueueSchedulingContextImpl

public interface QueueSchedulingContext<T>

A QueueSchedulingContext - nome est omen - provides a way to store and retrieve arbitrary parameters in the context of a specifc queue scheduling process.

The context is always associated with a specific QueueScheduler and a SchedulableQueueElement.
These associations are immutable, a context cannot be migrated to another schedulable or scheduler after its creation.


Method Summary
 java.lang.Object getParam(java.lang.String name)
          Retrieves a param from the context.
 java.lang.Object setParam(java.lang.String name, java.lang.Object param)
          Sets a context param into this context.
 

Method Detail

getParam

java.lang.Object getParam(java.lang.String name)
Retrieves a param from the context.

Parameters:
name -
Returns:
the param associated with the passed name in this context, null if no such param is present.
See Also:
Map.get(Object)

setParam

java.lang.Object setParam(java.lang.String name,
                          java.lang.Object param)
Sets a context param into this context.

Parameters:
name -
param -
Returns:
the last param set for this name, null if no such param has been present.
See Also:
Map.put(Object, Object)


Copyright © 2010 emarsys AG. All Rights Reserved.