com.wavefront.agent.queueing.QueueingFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proxy-test Show documentation
Show all versions of proxy-test Show documentation
Service for batching and relaying metric traffic to Wavefront
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);
}