
com.wavefront.agent.queueing.TaskQueueFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proxy Show documentation
Show all versions of proxy 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;
/**
* A factory for {@link TaskQueue} objects.
*
* @author [email protected].
*/
public interface TaskQueueFactory {
/**
* Create a task queue for a specified {@link HandlerKey} and thread number.
*
* @param handlerKey handler key for the {@code TaskQueue}. Usually part of the file name.
* @param threadNum thread number. Usually part of the file name.
* @return task queue for the specified thread
*/
> TaskQueue getTaskQueue(
@Nonnull HandlerKey handlerKey, int threadNum);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy