Class ContextPartitionIdentifierInitiatedTerminated
java.lang.Object
com.espertech.esper.common.client.context.ContextPartitionIdentifier
com.espertech.esper.common.client.context.ContextPartitionIdentifierInitiatedTerminated
- All Implemented Interfaces:
Serializable
Context partition identifier for overlapping and non-overlapping contexts.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor.ContextPartitionIdentifierInitiatedTerminated
(Map<String, Object> properties, long startTime, Long endTime) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare identifiers returning a boolean indicator whether identifier information matches.Returns the end time of the context partition, if it can be computedEvent or pattern information.long
Returns the start time of the context partition.void
setEndTime
(Long endTime) Sets the end time of the context partition, if it can be computedvoid
setProperties
(Map<String, Object> properties) Sets the event or pattern information.void
setStartTime
(long startTime) Sets the start time of the context partition.toString()
Methods inherited from class com.espertech.esper.common.client.context.ContextPartitionIdentifier
getContextPartitionId, setContextPartitionId
-
Constructor Details
-
ContextPartitionIdentifierInitiatedTerminated
public ContextPartitionIdentifierInitiatedTerminated()Ctor. -
ContextPartitionIdentifierInitiatedTerminated
public ContextPartitionIdentifierInitiatedTerminated(Map<String, Object> properties, long startTime, Long endTime) Ctor.- Parameters:
properties
- of triggering objectstartTime
- start timeendTime
- optional end time
-
-
Method Details
-
getProperties
Event or pattern information.- Returns:
- starting or initiating information
-
setProperties
Sets the event or pattern information.- Parameters:
properties
- starting or initiating information
-
getStartTime
public long getStartTime()Returns the start time of the context partition.- Returns:
- start time
-
setStartTime
public void setStartTime(long startTime) Sets the start time of the context partition.- Parameters:
startTime
- start time
-
getEndTime
Returns the end time of the context partition, if it can be computed- Returns:
- end time
-
setEndTime
Sets the end time of the context partition, if it can be computed- Parameters:
endTime
- end time
-
compareTo
Description copied from class:ContextPartitionIdentifier
Compare identifiers returning a boolean indicator whether identifier information matches.- Specified by:
compareTo
in classContextPartitionIdentifier
- Parameters:
other
- to compare to- Returns:
- true for objects identifying the same context partition (could be different context)
-
toString
-