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.
|
EventProcessorProperties.Dlq |
getDlq()
Retrieves the AutoConfiguration settings for the sequenced dead letter queue settings.
|
Integer |
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
SequencingPolicy
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 using a
StreamingEventProcessor implementation. |
long |
getTokenClaimInterval()
Returns the interval between attempts to claim tokens by a
StreamingEventProcessor . |
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 |
setDlq(EventProcessorProperties.Dlq dlq)
Defines the AutoConfiguration settings for the sequenced dead letter queue.
|
void |
setInitialSegmentCount(Integer 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
SequencingPolicy 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 using a
StreamingEventProcessor implementation. |
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()
EventProcessorProperties.Mode.TRACKING
.public void setMode(EventProcessorProperties.Mode mode)
EventProcessorProperties.Mode.TRACKING
.mode
- the type of processor that should be configured.public Integer getInitialSegmentCount()
TrackingEventProcessor
and 16 for a
PooledStreamingEventProcessor
.
If the threadCount
is not further specified, the initial segment count will be used for this too.
public void setInitialSegmentCount(Integer initialSegmentCount)
TrackingEventProcessor
and 16 for a
PooledStreamingEventProcessor
.
If the threadCount
is not further specified, the initial segment count will be used for this too.
initialSegmentCount
- the number of initial segments that should be created.public long getTokenClaimInterval()
StreamingEventProcessor
. Defaults to 5000 milliseconds.StreamingEventProcessor
.public void setTokenClaimInterval(long tokenClaimInterval)
tokenClaimInterval
- the interval between attempts to claim tokens by a
TrackingEventProcessor
.public TimeUnit getTokenClaimIntervalTimeUnit()
TimeUnit.MILLISECONDS
.public void setTokenClaimIntervalTimeUnit(TimeUnit tokenClaimIntervalTimeUnit)
TimeUnit
.
Defaults to TimeUnit.MILLISECONDS
.tokenClaimIntervalTimeUnit
- the time unit used to defined tokens claim interval.public int getThreadCount()
StreamingEventProcessor
implementation. Defaults to the configured
number of initial segments. If this field is not configured, the thread count defaults to 1 for a
TrackingEventProcessor
and 4 for a
PooledStreamingEventProcessor
.public void setThreadCount(int threadCount)
StreamingEventProcessor
implementation. Defaults to the configured
number of initial segments. If this field is not configured, the thread count defaults to 1 for a
TrackingEventProcessor
and 4 for a
PooledStreamingEventProcessor
.
A provided threadCount
< 0 will result in a number of threads equal to the configured number of
setInitialSegmentCount(Integer)
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()
SequencingPolicy
for this processor.SequencingPolicy
for this processor.public void setSequencingPolicy(String sequencingPolicy)
SequencingPolicy
for
this processor. The SequencingPolicy
describes which Events must be handled sequentially, and which
can be handled concurrently. Defaults to a
SequentialPerAggregatePolicy
.sequencingPolicy
- the name of the bean that defines the
SequencingPolicy
for this processor.public EventProcessorProperties.Dlq getDlq()
public void setDlq(EventProcessorProperties.Dlq dlq)
dlq
- the sequenced dead letter queue settings for the sequenced dead letter queue.Copyright © 2010–2024. All rights reserved.