public class AggregatorManager extends Object implements org.mule.runtime.api.lifecycle.Lifecycle
| Constructor and Description |
|---|
AggregatorManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
Optional<AggregatorListener> |
getListener(String aggregatorName)
Get the listener registered to the aggregator with
If the aggregator does not have any listener registered to it an
Optional.empty() will be returned |
long |
getTaskSchedulingPeriodInMillis()
Returns the period used for scheduling registered aggregator tasks in milliseconds.
|
void |
initialise() |
void |
registerAggregator(String aggregatorName,
Runnable synchronizingTask)
Registers a new aggregator to keep track of the available ones and check valid listener registrations.
|
void |
registerListener(String aggregatorName,
AggregatorListener listener)
Registers a unique listener to an already registered aggregator
|
void |
start() |
void |
stop() |
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startableorg.mule.runtime.api.exception.MuleExceptionpublic void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppableorg.mule.runtime.api.exception.MuleExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposablepublic void registerAggregator(String aggregatorName, Runnable synchronizingTask)
aggregatorName - the name of the aggregator registeredpublic void registerListener(String aggregatorName, AggregatorListener listener) throws org.mule.runtime.api.exception.MuleRuntimeException
aggregatorName - the name of the aggregator to register tolistener - the listener to be called when neededorg.mule.runtime.api.exception.MuleRuntimeExceptionpublic Optional<AggregatorListener> getListener(String aggregatorName)
Optional.empty() will be returnedpublic long getTaskSchedulingPeriodInMillis()
Copyright © 2018 MuleSoft, Inc.. All rights reserved.