org.terracotta.management.registry
Class DefaultCallQueryBuilder<T>
java.lang.Object
org.terracotta.management.registry.DefaultCallQueryBuilder<T>
- All Implemented Interfaces:
- CallQuery.Builder<T>, QueryBuilder<CallQuery.Builder<T>,CallQuery<T>>
public class DefaultCallQueryBuilder<T>
- extends Object
- implements CallQuery.Builder<T>
- Author:
- Mathieu Carbou
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCallQueryBuilder
public DefaultCallQueryBuilder(CapabilityManagementSupport capabilityManagement,
String capabilityName,
String methodName,
Class<T> returnType,
Parameter... parameters)
build
public CallQuery<T> build()
- Specified by:
build in interface QueryBuilder<CallQuery.Builder<T>,CallQuery<T>>
on
public CallQuery.Builder<T> on(Context context)
- Description copied from interface:
QueryBuilder
- Adds a context to run this query against
- Specified by:
on in interface QueryBuilder<CallQuery.Builder<T>,CallQuery<T>>
- Parameters:
context - The management registry context
- Returns:
- this builder
on
public CallQuery.Builder<T> on(Collection<? extends Context> contexts)
- Description copied from interface:
QueryBuilder
- Adds some contexts to run this query against.
The order is important and kept: if teh query is ran on several contexts, then the order of results will match the order of the contexts
- Specified by:
on in interface QueryBuilder<CallQuery.Builder<T>,CallQuery<T>>
- Parameters:
contexts - The management registry contexts
- Returns:
- this builder
Copyright © 2016. All Rights Reserved.