Package org.drools.core.rule
Class SlidingTimeWindow.SlidingTimeWindowContext
- java.lang.Object
-
- org.drools.core.rule.SlidingTimeWindow.SlidingTimeWindowContext
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,Behavior.Context
- Enclosing class:
- SlidingTimeWindow
public static class SlidingTimeWindow.SlidingTimeWindowContext extends java.lang.Object implements Behavior.Context, java.io.Externalizable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SlidingTimeWindowContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(EventFactHandle handle)EventFactHandlegetExpiringHandle()java.util.Collection<EventFactHandle>getFactHandles()JobHandlegetJobHandle()booleanisEmpty()EventFactHandlepeek()EventFactHandlepoll()voidreadExternal(java.io.ObjectInput in)EventFactHandleremove()voidremove(EventFactHandle handle)voidsetExpiringHandle(EventFactHandle expiringHandle)voidsetJobHandle(JobHandle jobHandle)voidwriteExternal(java.io.ObjectOutput out)
-
-
-
Method Detail
-
getJobHandle
public JobHandle getJobHandle()
- Specified by:
getJobHandlein interfaceBehavior.Context
-
setJobHandle
public void setJobHandle(JobHandle jobHandle)
- Specified by:
setJobHandlein interfaceBehavior.Context
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
getExpiringHandle
public EventFactHandle getExpiringHandle()
-
setExpiringHandle
public void setExpiringHandle(EventFactHandle expiringHandle)
-
add
public void add(EventFactHandle handle)
-
remove
public void remove(EventFactHandle handle)
-
isEmpty
public boolean isEmpty()
-
peek
public EventFactHandle peek()
-
poll
public EventFactHandle poll()
-
remove
public EventFactHandle remove()
-
getFactHandles
public java.util.Collection<EventFactHandle> getFactHandles()
- Specified by:
getFactHandlesin interfaceBehavior.Context
-
-