public abstract class QueryHandler extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
complete |
Constructor and Description |
---|
QueryHandler() |
Modifier and Type | Method and Description |
---|---|
void |
acknowledge()
Indicate that the query was received and accepted by the QUERY_PROCESSING system.
|
void |
complete()
Completes the query and sets the complete flag.
|
void |
fail()
Convenience method that fails a query with a generic service unavailable error.
|
abstract void |
fail(QueryError cause)
Fail the query.
|
abstract void |
send(com.yahoo.bullet.pubsub.PubSubMessage message)
Send a
PubSubMessage to the query handler. |
public abstract void send(com.yahoo.bullet.pubsub.PubSubMessage message)
PubSubMessage
to the query handler.message
- The PubSubMessage containing a response.public void complete()
public abstract void fail(QueryError cause)
cause
- is the QueryError
that caused the fail to be invoked.public void acknowledge()
public void fail()
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.