Package org.drools.core.rule
Class SlidingTimeWindow.SlidingTimeWindowContext
- java.lang.Object
-
- org.drools.core.rule.SlidingTimeWindow.SlidingTimeWindowContext
-
- All Implemented Interfaces:
Externalizable,Serializable,Behavior.Context
- Enclosing class:
- SlidingTimeWindow
public static class SlidingTimeWindow.SlidingTimeWindowContext extends Object implements Behavior.Context, 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()Collection<EventFactHandle>getFactHandles()JobHandlegetJobHandle()booleanisEmpty()EventFactHandlepeek()EventFactHandlepoll()voidreadExternal(ObjectInput in)EventFactHandleremove()voidremove(EventFactHandle handle)voidsetExpiringHandle(EventFactHandle expiringHandle)voidsetJobHandle(JobHandle jobHandle)voidwriteExternal(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(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
-
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 Collection<EventFactHandle> getFactHandles()
- Specified by:
getFactHandlesin interfaceBehavior.Context
-
-