|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lens.server.api.events.LensEvent
org.apache.lens.server.api.query.QueryEvent<T>
T - Type of changed information about the querypublic abstract class QueryEvent<T>
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.
| Field Summary | |
|---|---|
protected T |
currentValue
The current value. |
protected UUID |
id
The id. |
protected T |
previousValue
The previous value. |
protected QueryHandle |
queryHandle
The query handle. |
| Fields inherited from class org.apache.lens.server.api.events.LensEvent |
|---|
eventTime |
| Constructor Summary | |
|---|---|
QueryEvent(long eventTime,
T prev,
T current,
QueryHandle handle)
Instantiates a new query event. |
|
| Method Summary | |
|---|---|
String |
getEventId()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final T previousValue
protected final T currentValue
protected final QueryHandle queryHandle
protected final UUID id
| Constructor Detail |
|---|
public QueryEvent(long eventTime,
T prev,
T current,
QueryHandle handle)
eventTime - the event timeprev - the prevcurrent - the currenthandle - the handle| Method Detail |
|---|
public String getEventId()
getEventId in class LensEventpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||