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
-
Method Summary
Modifier and TypeMethodDescriptionint
To force complete of all groupsint
To force completing a specific group by its key.int
To force discardingof all groupsint
To force discarding a specific group by its key.void
onStart
(AggregateProcessor processor) Callback when the aggregate processor is started.void
onStop
(AggregateProcessor processor) Callback when the aggregate processor is stopped.
-
Constructor Details
-
DefaultAggregateController
public DefaultAggregateController()
-
-
Method Details
-
onStart
Description copied from interface:AggregateController
Callback when the aggregate processor is started.- Specified by:
onStart
in interfaceAggregateController
- Parameters:
processor
- the aggregate processor
-
onStop
Description copied from interface:AggregateController
Callback when the aggregate processor is stopped.- Specified by:
onStop
in interfaceAggregateController
- Parameters:
processor
- the aggregate processor
-
forceCompletionOfGroup
Description copied from interface:AggregateController
To force completing a specific group by its key.- Specified by:
forceCompletionOfGroup
in 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:AggregateController
To force complete of all groups- Specified by:
forceCompletionOfAllGroups
in interfaceAggregateController
- Returns:
- number of groups that was forced completed
-
forceDiscardingOfGroup
Description copied from interface:AggregateController
To force discarding a specific group by its key.- Specified by:
forceDiscardingOfGroup
in 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:AggregateController
To force discardingof all groups- Specified by:
forceDiscardingOfAllGroups
in interfaceAggregateController
- Returns:
- number of groups that was forced discarded
-