All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.terracotta.management.registry.QueryBuilder Maven / Gradle / Ivy

The newest version!
/*
 * Copyright Terracotta, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.terracotta.management.registry;

import org.terracotta.management.model.context.Context;

import java.util.Collection;

/**
 * @author Mathieu Carbou
 */
public interface QueryBuilder {

  /**
   * Adds a context to run this query against
   *
   * @param context The management registry context
   * @return this builder
   */
  B on(Context context);

  /**
   * 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
   *
   * @param contexts The management registry contexts
   * @return this builder
   */
  B on(Collection contexts);

  T build();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy