com.espertech.esper.client.context
Class ContextPartitionIdentifierInitiatedTerminated

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

public class ContextPartitionIdentifierInitiatedTerminated
extends ContextPartitionIdentifier

Context partition identifier for overlapping and non-overlapping contexts.

See Also:
Serialized Form

Constructor Summary
ContextPartitionIdentifierInitiatedTerminated()
          Ctor.
ContextPartitionIdentifierInitiatedTerminated(java.util.Map<java.lang.String,java.lang.Object> properties, long startTime, java.lang.Long endTime)
          Ctor.
 
Method Summary
 boolean compareTo(ContextPartitionIdentifier other)
          Compare identifiers returning a boolean indicator whether identifier information matches.
 java.lang.Long getEndTime()
          Returns the end time of the context partition, if it can be computed
 java.util.Map<java.lang.String,java.lang.Object> getProperties()
          Event or pattern information.
 long getStartTime()
          Returns the start time of the context partition.
 void setEndTime(java.lang.Long endTime)
          Sets the end time of the context partition, if it can be computed
 void setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
          Sets the event or pattern information.
 void setStartTime(long startTime)
          Sets the start time of the context partition.
 java.lang.String toString()
           
 
Methods inherited from class com.espertech.esper.client.context.ContextPartitionIdentifier
getContextPartitionId, setContextPartitionId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContextPartitionIdentifierInitiatedTerminated

public ContextPartitionIdentifierInitiatedTerminated()
Ctor.


ContextPartitionIdentifierInitiatedTerminated

public ContextPartitionIdentifierInitiatedTerminated(java.util.Map<java.lang.String,java.lang.Object> properties,
                                                     long startTime,
                                                     java.lang.Long endTime)
Ctor.

Parameters:
properties - of triggering object
startTime - start time
endTime - optional end time
Method Detail

getProperties

public java.util.Map<java.lang.String,java.lang.Object> getProperties()
Event or pattern information.

Returns:
starting or initiating information

setProperties

public void setProperties(java.util.Map<java.lang.String,java.lang.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 java.lang.Long getEndTime()
Returns the end time of the context partition, if it can be computed

Returns:
end time

setEndTime

public void setEndTime(java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com