org.apache.lens.server.api.query
Class QueryEvent<T>
java.lang.Object
org.apache.lens.server.api.events.LensEvent
org.apache.lens.server.api.query.QueryEvent<T>
- Type Parameters:
T
- Type of changed information about the query
- Direct Known Subclasses:
- PriorityChange, QueryAccepted, QueryRejected, QueuePositionChange, StatusChange
public abstract class QueryEvent<T>
- extends LensEvent
A generic event related to state change of a query Subclasses must declare the specific type of change they are
interested in.
Every event will have an ID, which should be used by listeners to check if the event is already received.
Constructor Summary |
QueryEvent(long eventTime,
T prev,
T current,
QueryHandle handle)
Instantiates a new query event. |
QueryEvent
public QueryEvent(long eventTime,
T prev,
T current,
QueryHandle handle)
- Instantiates a new query event.
- Parameters:
eventTime
- the event timeprev
- the prevcurrent
- the currenthandle
- the handle
getEventId
public String getEventId()
- Specified by:
getEventId
in class LensEvent
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.