net.esper.core
Class EPStatementHandleCallback

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

public class EPStatementHandleCallback
extends 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(EPStatementHandle epStatementHandle, FilterHandleCallback callback)
          Ctor.
EPStatementHandleCallback(EPStatementHandle epStatementHandle, ScheduleHandleCallback callback)
          Ctor.
 
Method Summary
 EPStatementHandle getEpStatementHandle()
          Returns the statement handle.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EPStatementHandleCallback

public EPStatementHandleCallback(EPStatementHandle epStatementHandle,
                                 FilterHandleCallback callback)
Ctor.

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

EPStatementHandleCallback

public EPStatementHandleCallback(EPStatementHandle epStatementHandle,
                                 ScheduleHandleCallback callback)
Ctor.

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

getEpStatementHandle

public EPStatementHandle getEpStatementHandle()
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