Class DefaultInteractiveQueryService
- java.lang.Object
-
- io.streamthoughts.azkarra.runtime.query.DefaultInteractiveQueryService
-
- All Implemented Interfaces:
InteractiveQueryService
public class DefaultInteractiveQueryService extends Object implements InteractiveQueryService
ADefaultInteractiveQueryService
is used to execute a query request. The query execution can be delegate to aQueryExecutionDelegatee
.
-
-
Constructor Summary
Constructors Constructor Description DefaultInteractiveQueryService(AzkarraStreamsService service)
Creates a newDefaultInteractiveQueryService
instance.DefaultInteractiveQueryService(AzkarraStreamsService service, List<QueryExecutionDelegatee> executors)
Creates a newDefaultInteractiveQueryService
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <K,V>
QueryResult<K,V>execute(String applicationId, QueryRequest queryRequest, QueryOptions queryOptions)
Executes an interactive query for the specified streams application.void
registerQueryExecutionDelegatee(QueryExecutionDelegatee delegatee)
Registers a newQueryExecutionDelegatee
instance.
-
-
-
Constructor Detail
-
DefaultInteractiveQueryService
public DefaultInteractiveQueryService(AzkarraStreamsService service)
Creates a newDefaultInteractiveQueryService
instance.- Parameters:
service
- theAzkarraStreamsService
instance.
-
DefaultInteractiveQueryService
public DefaultInteractiveQueryService(AzkarraStreamsService service, List<QueryExecutionDelegatee> executors)
Creates a newDefaultInteractiveQueryService
instance.- Parameters:
service
- theAzkarraStreamsService
instance.
-
-
Method Detail
-
execute
public <K,V> QueryResult<K,V> execute(String applicationId, QueryRequest queryRequest, QueryOptions queryOptions)
Executes an interactive query for the specified streams application.- Specified by:
execute
in interfaceInteractiveQueryService
- Parameters:
applicationId
- theapplication.id
of the Kafka Streams to query.queryRequest
- the query object to be executed.queryOptions
- the options of the query.- Returns:
- the
QueryResult
instance.
-
registerQueryExecutionDelegatee
public void registerQueryExecutionDelegatee(QueryExecutionDelegatee delegatee)
Registers a newQueryExecutionDelegatee
instance.- Parameters:
delegatee
- theQueryExecutionDelegatee
to register.
-
-