Class DefaultAggregateController
java.lang.Object
org.apache.camel.processor.aggregate.DefaultAggregateController
- All Implemented Interfaces:
AggregateController
A default
AggregateController that offers Java and JMX API.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintTo force complete of all groupsintTo force completing a specific group by its key.intTo force discardingof all groupsintTo force discarding a specific group by its key.voidonStart(AggregateProcessor processor) Callback when the aggregate processor is started.voidonStop(AggregateProcessor processor) Callback when the aggregate processor is stopped.
-
Constructor Details
-
DefaultAggregateController
public DefaultAggregateController()
-
-
Method Details
-
onStart
Description copied from interface:AggregateControllerCallback when the aggregate processor is started.- Specified by:
onStartin interfaceAggregateController- Parameters:
processor- the aggregate processor
-
onStop
Description copied from interface:AggregateControllerCallback when the aggregate processor is stopped.- Specified by:
onStopin interfaceAggregateController- Parameters:
processor- the aggregate processor
-
forceCompletionOfGroup
Description copied from interface:AggregateControllerTo force completing a specific group by its key.- Specified by:
forceCompletionOfGroupin interfaceAggregateController- Parameters:
key- the key- Returns:
- 1 if the group was forced completed, 0 if the group does not exist
-
forceCompletionOfAllGroups
public int forceCompletionOfAllGroups()Description copied from interface:AggregateControllerTo force complete of all groups- Specified by:
forceCompletionOfAllGroupsin interfaceAggregateController- Returns:
- number of groups that was forced completed
-
forceDiscardingOfGroup
Description copied from interface:AggregateControllerTo force discarding a specific group by its key.- Specified by:
forceDiscardingOfGroupin interfaceAggregateController- Parameters:
key- the key- Returns:
- 1 if the group was forced discarded, 0 if the group does not exist
-
forceDiscardingOfAllGroups
public int forceDiscardingOfAllGroups()Description copied from interface:AggregateControllerTo force discardingof all groups- Specified by:
forceDiscardingOfAllGroupsin interfaceAggregateController- Returns:
- number of groups that was forced discarded
-