Package org.drools.core.rule
Class SlidingTimeWindow.BehaviorJobContext
- java.lang.Object
-
- org.drools.core.rule.SlidingTimeWindow.BehaviorJobContext
-
- All Implemented Interfaces:
Externalizable,Serializable,JobContext
- Enclosing class:
- SlidingTimeWindow
public static class SlidingTimeWindow.BehaviorJobContext extends Object implements JobContext, Externalizable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description BehaviorbehaviorBehavior.ContextbehaviorContextintnodeIdInternalWorkingMemoryworkingMemory
-
Constructor Summary
Constructors Constructor Description BehaviorJobContext()Do not use this constructor!BehaviorJobContext(int nodeId, InternalWorkingMemory workingMemory, Behavior behavior, Behavior.Context behaviorContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobHandlegetJobHandle()InternalWorkingMemorygetWorkingMemory()voidreadExternal(ObjectInput in)voidsetJobHandle(JobHandle jobHandle)This method should only be called by the schedulervoidwriteExternal(ObjectOutput out)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.drools.core.time.JobContext
getInternalKnowledgeRuntime
-
-
-
-
Field Detail
-
workingMemory
public InternalWorkingMemory workingMemory
-
nodeId
public int nodeId
-
behavior
public Behavior behavior
-
behaviorContext
public Behavior.Context behaviorContext
-
-
Constructor Detail
-
BehaviorJobContext
public BehaviorJobContext(int nodeId, InternalWorkingMemory workingMemory, Behavior behavior, Behavior.Context behaviorContext)
-
BehaviorJobContext
public BehaviorJobContext()
Do not use this constructor! It should be used just by deserialization.
-
-
Method Detail
-
getJobHandle
public JobHandle getJobHandle()
- Specified by:
getJobHandlein interfaceJobContext
-
setJobHandle
public void setJobHandle(JobHandle jobHandle)
Description copied from interface:JobContextThis method should only be called by the scheduler- Specified by:
setJobHandlein interfaceJobContext
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
getWorkingMemory
public InternalWorkingMemory getWorkingMemory()
- Specified by:
getWorkingMemoryin interfaceJobContext
-
-