public static class EventProcessorProperties.ProcessorSettings extends Object
Constructor and Description |
---|
ProcessorSettings() |
Modifier and Type | Method and Description |
---|---|
int |
getBatchSize()
Returns the maximum size of a processing batch.
|
int |
getInitialSegmentCount()
Returns the number of initial segments that should be created, if no segments are already present.
|
EventProcessorProperties.Mode |
getMode()
Returns the type of processor to configure.
|
String |
getSequencingPolicy()
Returns the name of the bean that defines the Sequencing Policy for this processor.
|
String |
getSource()
Returns the name of the bean that should be used as source for Event Messages.
|
int |
getThreadCount()
Returns the number of threads to use to process Events, when in "tracking" mode.
|
long |
getTokenClaimInterval()
Returns the interval between attempts to claim tokens by a
TrackingEventProcessor . |
TimeUnit |
getTokenClaimIntervalTimeUnit()
Returns the time unit used to define tokens claim interval.
|
void |
setBatchSize(int batchSize)
Sets the maximum size of a processing batch.
|
void |
setInitialSegmentCount(int initialSegmentCount)
Sets the number of initial segments that should be created, if no segments are already present.
|
void |
setMode(EventProcessorProperties.Mode mode)
Sets the type of processor that should be configured.
|
void |
setSequencingPolicy(String sequencingPolicy)
Sets the name of the bean that defines the Sequencing Policy for this processor.
|
void |
setSource(String source)
Sets the name of the bean that should be used as source for Event Messages.
|
void |
setThreadCount(int threadCount)
Sets the number of threads to use to process Events, when in "tracking" mode.
|
void |
setTokenClaimInterval(long tokenClaimInterval)
Sets the time to wait after a failed attempt to claim any token, before making another attempt.
|
void |
setTokenClaimIntervalTimeUnit(TimeUnit tokenClaimIntervalTimeUnit)
Sets the time unit used to defined tokens claim interval.
|
public String getSource()
EventBus
is used as source.public void setSource(String source)
source
- the name of the bean that should be used as source for Event Messages.public EventProcessorProperties.Mode getMode()
public void setMode(EventProcessorProperties.Mode mode)
mode
- the type of processor that should be configured.public int getInitialSegmentCount()
public void setInitialSegmentCount(int initialSegmentCount)
initialSegmentCount
- the number of initial segments that should be created.public long getTokenClaimInterval()
TrackingEventProcessor
.
Defaults to 5000 milliseconds.TrackingEventProcessor
.public void setTokenClaimInterval(long tokenClaimInterval)
tokenClaimInterval
- the interval between attempts to claim tokens by a TrackingEventProcessor
.public TimeUnit getTokenClaimIntervalTimeUnit()
public void setTokenClaimIntervalTimeUnit(TimeUnit tokenClaimIntervalTimeUnit)
TimeUnit
.
Defaults to MILLISECONDS.tokenClaimIntervalTimeUnit
- the time unit used to defined tokens claim interval.public int getThreadCount()
public void setThreadCount(int threadCount)
A provided threadCount
< 0 will result in a number of threads equal to the configured number of
initial segments
.
threadCount
- the number of threads to use to process Events.public int getBatchSize()
public void setBatchSize(int batchSize)
batchSize
- the maximum size of a processing batch.public String getSequencingPolicy()
public void setSequencingPolicy(String sequencingPolicy)
sequencingPolicy
- the name of the bean that defines the Sequencing Policy for this processor.Copyright © 2010–2020. All rights reserved.