com.emarsys.ecommon.time.schedule
Class QueueSchedulingContextImpl<T>
java.lang.Object
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
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 |
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
QueueSchedulingContextImpl
public QueueSchedulingContextImpl(SchedulableQueueElement<T> schedulable,
QueueScheduler<T> scheduler)
- Parameters:
schedulable
- scheduler
-
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.