@CompileStatic class QueryGatewayAdapter extends Object
Simplifies the API usage and exception handling of Axon QueryGateway
.
Constructor and description |
---|
QueryGatewayAdapter(QueryGateway queryGateway) |
Type Params | Return Type | Name and description |
---|---|---|
<R, Q> |
R |
query(OperationRequest<Q> queryOperationRequest, Class<R> queryResponseClass) Delegates calls to the QueryGateway.query() method.
|
<R, Q> |
R |
query(Q query, Map<String, ?> metaData, Class<R> queryResponseClass) Delegates calls to the QueryGateway.query() method.
|
Delegates calls to the QueryGateway.query()
method.
QueryGateway
, it unwraps details exception (if available), and rethrows it to the caller.
Delegates calls to the QueryGateway.query()
method.
QueryGateway
, it unwraps details exception (if available), and rethrows it to the caller.QueryExecutionException
.QueryExecutionException
.query
- The query to be executed.metaData
- The metadata to dispatch with the query.R
- The type of result expected from query execution.