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 Behavior
behavior
Behavior.Context
behaviorContext
int
nodeId
InternalWorkingMemory
workingMemory
-
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 JobHandle
getJobHandle()
InternalWorkingMemory
getWorkingMemory()
void
readExternal(ObjectInput in)
void
setJobHandle(JobHandle jobHandle)
This method should only be called by the schedulervoid
writeExternal(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:
getJobHandle
in interfaceJobContext
-
setJobHandle
public void setJobHandle(JobHandle jobHandle)
Description copied from interface:JobContext
This method should only be called by the scheduler- Specified by:
setJobHandle
in interfaceJobContext
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
getWorkingMemory
public InternalWorkingMemory getWorkingMemory()
- Specified by:
getWorkingMemory
in interfaceJobContext
-
-