com.emarsys.ecommon.time.schedule
Class QueueSchedulingContextImpl<T>

java.lang.Object
  extended by com.emarsys.ecommon.time.schedule.QueueSchedulingContextImpl<T>
All Implemented Interfaces:
QueueSchedulingContext<T>

public class QueueSchedulingContextImpl<T>
extends java.lang.Object
implements QueueSchedulingContext<T>

Author:
Michael "kULO" Kulovits

Field Summary
protected  java.util.Map<java.lang.String,java.lang.Object> contextParams
           
protected  SchedulableQueueElement<T> schedulable
           
protected  QueueScheduler<T> scheduler
           
 
Constructor Summary
QueueSchedulingContextImpl(SchedulableQueueElement<T> schedulable, QueueScheduler<T> scheduler)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contextParams

protected final java.util.Map<java.lang.String,java.lang.Object> contextParams

schedulable

protected final SchedulableQueueElement<T> schedulable

scheduler

protected final QueueScheduler<T> scheduler
Constructor Detail

QueueSchedulingContextImpl

public QueueSchedulingContextImpl(SchedulableQueueElement<T> schedulable,
                                  QueueScheduler<T> scheduler)
Parameters:
schedulable -
scheduler -
Method Detail

getParam

public java.lang.Object getParam(java.lang.String name)
Description copied from interface: QueueSchedulingContext
Retrieves a param from the context.

Specified by:
getParam in interface QueueSchedulingContext<T>
Returns:
the param associated with the passed name in this context, null if no such param is present.
See Also:
QueueSchedulingContext.getParam(java.lang.String)

setParam

public java.lang.Object setParam(java.lang.String name,
                                 java.lang.Object param)
Description copied from interface: QueueSchedulingContext
Sets a context param into this context.

Specified by:
setParam in interface QueueSchedulingContext<T>
Returns:
the last param set for this name, null if no such param has been present.
See Also:
QueueSchedulingContext.setParam(java.lang.String, java.lang.Object)


Copyright © 2010 emarsys AG. All Rights Reserved.