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

com.wavefront.agent.queueing.QueueingFactory Maven / Gradle / Ivy

There is a newer version: 13.4
Show newest version
package com.wavefront.agent.queueing;

import com.wavefront.agent.data.DataSubmissionTask;
import com.wavefront.agent.handlers.HandlerKey;
import javax.annotation.Nonnull;

/**
 * Factory for {@link QueueProcessor} instances.
 *
 * @author [email protected]
 */
public interface QueueingFactory {
  /**
   * Create a new {@code QueueController} instance for the specified handler key.
   *
   * @param handlerKey {@link HandlerKey} for the queue controller.
   * @param numThreads number of threads to create processor tasks for.
   * @param  data submission task type.
   * @return {@code QueueController} object
   */
  > QueueController getQueueController(
      @Nonnull HandlerKey handlerKey, int numThreads);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy