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 void
flushNow(HandlerKey handlerKey)
<T extends DataSubmissionTask<T>>
QueueController<T>getQueueController(HandlerKey handlerKey, int numThreads)
Create a newQueueController
instance 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:QueueingFactory
Create a newQueueController
instance for the specified handler key.- Specified by:
getQueueController
in interfaceQueueingFactory
- Type Parameters:
T
- data submission task type.- Parameters:
handlerKey
-HandlerKey
for the queue controller.numThreads
- number of threads to create processor tasks for.- Returns:
QueueController
object
-
flushNow
public void flushNow(@Nonnull HandlerKey handlerKey)
-
-