Package com.wavefront.agent.queueing
Class QueueingFactoryImpl
- java.lang.Object
-
- com.wavefront.agent.queueing.QueueingFactoryImpl
-
- All Implemented Interfaces:
QueueingFactory
public class QueueingFactoryImpl extends Object implements QueueingFactory
A caching implementation ofQueueingFactory.- Author:
- [email protected]
-
-
Constructor Summary
Constructors Constructor Description QueueingFactoryImpl(APIContainer apiContainer, UUID proxyId, TaskQueueFactory taskQueueFactory, EntityPropertiesFactory entityPropsFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflushNow(HandlerKey handlerKey)<T extends DataSubmissionTask<T>>
QueueController<T>getQueueController(HandlerKey handlerKey, int numThreads)Create a newQueueControllerinstance for the specified handler key.
-
-
-
Constructor Detail
-
QueueingFactoryImpl
public QueueingFactoryImpl(APIContainer apiContainer, UUID proxyId, TaskQueueFactory taskQueueFactory, EntityPropertiesFactory entityPropsFactory)
- Parameters:
apiContainer- handles interaction with Wavefront servers as well as queueing.proxyId- proxy ID.taskQueueFactory- factory for backing queues.entityPropsFactory- factory for entity-specific wrappers for mutable proxy settings.
-
-
Method Detail
-
getQueueController
public <T extends DataSubmissionTask<T>> QueueController<T> getQueueController(@Nonnull HandlerKey handlerKey, int numThreads)
Description copied from interface:QueueingFactoryCreate a newQueueControllerinstance for the specified handler key.- Specified by:
getQueueControllerin interfaceQueueingFactory- Type Parameters:
T- data submission task type.- Parameters:
handlerKey-HandlerKeyfor the queue controller.numThreads- number of threads to create processor tasks for.- Returns:
QueueControllerobject
-
flushNow
public void flushNow(@Nonnull HandlerKey handlerKey)
-
-