Class ContextPartitionIdentifierInitiatedTerminated

java.lang.Object
com.espertech.esper.common.client.context.ContextPartitionIdentifier
com.espertech.esper.common.client.context.ContextPartitionIdentifierInitiatedTerminated
All Implemented Interfaces:
Serializable

public class ContextPartitionIdentifierInitiatedTerminated extends ContextPartitionIdentifier
Context partition identifier for overlapping and non-overlapping contexts.
See Also:
  • Constructor Details

    • ContextPartitionIdentifierInitiatedTerminated

      public ContextPartitionIdentifierInitiatedTerminated()
      Ctor.
    • ContextPartitionIdentifierInitiatedTerminated

      public ContextPartitionIdentifierInitiatedTerminated(Map<String,Object> properties, long startTime, Long endTime)
      Ctor.
      Parameters:
      properties - of triggering object
      startTime - start time
      endTime - optional end time
  • Method Details

    • getProperties

      public Map<String,Object> getProperties()
      Event or pattern information.
      Returns:
      starting or initiating information
    • setProperties

      public void setProperties(Map<String,Object> properties)
      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

      public Long getEndTime()
      Returns the end time of the context partition, if it can be computed
      Returns:
      end time
    • setEndTime

      public void setEndTime(Long endTime)
      Sets the end time of the context partition, if it can be computed
      Parameters:
      endTime - end time
    • compareTo

      public boolean compareTo(ContextPartitionIdentifier other)
      Description copied from class: ContextPartitionIdentifier
      Compare identifiers returning a boolean indicator whether identifier information matches.
      Specified by:
      compareTo in class ContextPartitionIdentifier
      Parameters:
      other - to compare to
      Returns:
      true for objects identifying the same context partition (could be different context)
    • toString

      public String toString()
      Overrides:
      toString in class Object