com.espertech.esper.client.hook
Class VirtualDataWindowEventConsumerBase

java.lang.Object
  extended by com.espertech.esper.client.hook.VirtualDataWindowEvent
      extended by com.espertech.esper.client.hook.VirtualDataWindowEventConsumerBase
Direct Known Subclasses:
VirtualDataWindowEventConsumerAdd, VirtualDataWindowEventConsumerRemove

public abstract class VirtualDataWindowEventConsumerBase
extends VirtualDataWindowEvent

Base class for events indicating a named-window consumer management.


Constructor Summary
VirtualDataWindowEventConsumerBase(java.lang.String namedWindowName, java.lang.Object consumerObject, java.lang.String statementName, int agentInstanceId)
          Ctor.
 
Method Summary
 int getAgentInstanceId()
          Returns the agent instance id (context partition id).
 java.lang.Object getConsumerObject()
          Returns an object that serves as a unique identifier for the consumer, with multiple consumer per statements possible.
 java.lang.String getNamedWindowName()
          Returns the named window name.
 java.lang.String getStatementName()
          Returns the statement name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VirtualDataWindowEventConsumerBase

public VirtualDataWindowEventConsumerBase(java.lang.String namedWindowName,
                                          java.lang.Object consumerObject,
                                          java.lang.String statementName,
                                          int agentInstanceId)
Ctor.

Parameters:
namedWindowName - the named window name
consumerObject - an object that identifies the consumer, the same instance or the add and for the remove event
statementName - statement name
agentInstanceId - agent instance id
Method Detail

getNamedWindowName

public java.lang.String getNamedWindowName()
Returns the named window name.

Returns:
named window name

getConsumerObject

public java.lang.Object getConsumerObject()
Returns an object that serves as a unique identifier for the consumer, with multiple consumer per statements possible.

Upon remove the removal event contains the same consumer object.

Returns:
consumer object

getStatementName

public java.lang.String getStatementName()
Returns the statement name.

Returns:
statement name

getAgentInstanceId

public int getAgentInstanceId()
Returns the agent instance id (context partition id).

Returns:
agent instance id

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