public static final class VortexAggregatePolicy.AggregatePolicyBuilder extends Object implements Builder<VortexAggregatePolicy>
VortexAggregatePolicy.| Modifier and Type | Method and Description |
|---|---|
VortexAggregatePolicy |
build()
Builds and returns a new
VortexAggregatePolicy based on user's specification. |
VortexAggregatePolicy.AggregatePolicyBuilder |
setCountTrigger(int pCount)
Sets the count trigger for aggregation.
|
VortexAggregatePolicy.AggregatePolicyBuilder |
setTimerPeriodTrigger(int pOffsetMilliseconds)
Sets the period to trigger aggregation in milliseconds.
|
public VortexAggregatePolicy.AggregatePolicyBuilder setTimerPeriodTrigger(int pOffsetMilliseconds)
public VortexAggregatePolicy.AggregatePolicyBuilder setCountTrigger(int pCount)
public VortexAggregatePolicy build() throws IllegalArgumentException
VortexAggregatePolicy based on user's specification.
The timer period is a required parameter for this to succeed.build in interface Builder<VortexAggregatePolicy>IllegalArgumentException - if required parameters are not set or if parameters are invalid.Copyright © 2017 The Apache Software Foundation. All rights reserved.