public final class BlockingQueryBridge extends java.lang.Object implements QueryBridge<io.spine.client.QueryResponse>
QueryBridge
which executes given queries in a blocking manner.Constructor and Description |
---|
BlockingQueryBridge(io.spine.client.grpc.QueryServiceGrpc.QueryServiceImplBase service)
Creates a new
BlockingQueryBridge . |
Modifier and Type | Method and Description |
---|---|
io.spine.client.QueryResponse |
send(io.spine.client.Query query)
Sends the given
Query to the
QueryService and dispatches the query response
to the query response processor. |
public BlockingQueryBridge(io.spine.client.grpc.QueryServiceGrpc.QueryServiceImplBase service)
BlockingQueryBridge
.service
- the query service to send queries intopublic io.spine.client.QueryResponse send(io.spine.client.Query query)
QueryBridge
Query
to the
QueryService
and dispatches the query response
to the query response processor.
Returns the result of query processing.
send
in interface QueryBridge<io.spine.client.QueryResponse>
query
- the query to send