com.espertech.esper.core.service
Class EPStatementHandleCallback

java.lang.Object
  extended by com.espertech.esper.core.service.EPStatementHandleCallback
All Implemented Interfaces:
FilterHandle, ScheduleHandle

public class EPStatementHandleCallback
extends java.lang.Object
implements FilterHandle, ScheduleHandle

Statement resource handle and callback for use with FilterService and SchedulingService.

Links the statement handle identifying a statement and containing the statement resource lock, with the actual callback to invoke for a statement together.


Constructor Summary
EPStatementHandleCallback(EPStatementAgentInstanceHandle agentInstanceHandle, FilterHandleCallback callback)
          Ctor.
EPStatementHandleCallback(EPStatementAgentInstanceHandle agentInstanceHandle, ScheduleHandleCallback callback)
          Ctor.
 
Method Summary
 EPStatementAgentInstanceHandle getAgentInstanceHandle()
          Returns the statement handle.
 int getAgentInstanceId()
          Returns the agent instance id.
 FilterHandleCallback getFilterCallback()
          Returns the statement filter callback, or null if this is a schedule callback handle.
 ScheduleHandleCallback getScheduleCallback()
          Returns the statement schedule callback, or null if this is a filter callback handle.
 java.lang.String getStatementId()
          Returns the statement id.
 void setScheduleCallback(ScheduleHandleCallback scheduleCallback)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EPStatementHandleCallback

public EPStatementHandleCallback(EPStatementAgentInstanceHandle agentInstanceHandle,
                                 FilterHandleCallback callback)
Ctor.

Parameters:
agentInstanceHandle - is a statement handle
callback - is a filter callback

EPStatementHandleCallback

public EPStatementHandleCallback(EPStatementAgentInstanceHandle agentInstanceHandle,
                                 ScheduleHandleCallback callback)
Ctor.

Parameters:
agentInstanceHandle - is a statement handle
callback - is a schedule callback
Method Detail

getStatementId

public java.lang.String getStatementId()
Description copied from interface: FilterHandle
Returns the statement id.

Specified by:
getStatementId in interface FilterHandle
Specified by:
getStatementId in interface ScheduleHandle
Returns:
statement id

getAgentInstanceId

public int getAgentInstanceId()
Description copied from interface: ScheduleHandle
Returns the agent instance id.

Specified by:
getAgentInstanceId in interface ScheduleHandle
Returns:
agent instance id

getAgentInstanceHandle

public EPStatementAgentInstanceHandle getAgentInstanceHandle()
Returns the statement handle.

Returns:
handle containing a statement resource lock

getFilterCallback

public FilterHandleCallback getFilterCallback()
Returns the statement filter callback, or null if this is a schedule callback handle.

Returns:
filter callback

getScheduleCallback

public ScheduleHandleCallback getScheduleCallback()
Returns the statement schedule callback, or null if this is a filter callback handle.

Returns:
schedule callback

setScheduleCallback

public void setScheduleCallback(ScheduleHandleCallback scheduleCallback)

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