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 void
add(EventFactHandle handle)
EventFactHandle
getExpiringHandle()
Collection<EventFactHandle>
getFactHandles()
JobHandle
getJobHandle()
boolean
isEmpty()
EventFactHandle
peek()
EventFactHandle
poll()
void
readExternal(ObjectInput in)
EventFactHandle
remove()
void
remove(EventFactHandle handle)
void
setExpiringHandle(EventFactHandle expiringHandle)
void
setJobHandle(JobHandle jobHandle)
void
writeExternal(ObjectOutput out)
-
-
-
Method Detail
-
getJobHandle
public JobHandle getJobHandle()
- Specified by:
getJobHandle
in interfaceBehavior.Context
-
setJobHandle
public void setJobHandle(JobHandle jobHandle)
- Specified by:
setJobHandle
in interfaceBehavior.Context
-
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
-
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:
getFactHandles
in interfaceBehavior.Context
-
-