pub struct ProcessorConfig {Show 13 fields
pub stream_name: String,
pub batch_size: i32,
pub api_timeout: Duration,
pub processing_timeout: Duration,
pub total_timeout: Option<Duration>,
pub max_retries: Option<u32>,
pub shard_refresh_interval: Duration,
pub max_concurrent_shards: Option<u32>,
pub monitoring: MonitoringConfig,
pub initial_position: InitialPosition,
pub prefer_stored_checkpoint: bool,
pub minimum_batch_retrieval_time: Duration,
pub max_batch_retrieval_loops: Option<u32>,
}
Expand description
Configuration for the Kinesis processor
Fields§
§stream_name: String
Name of the Kinesis stream to process
batch_size: i32
Maximum number of records to request per GetRecords call
api_timeout: Duration
Timeout for API calls to AWS
processing_timeout: Duration
Maximum time allowed for processing a single record
total_timeout: Option<Duration>
Optional total runtime limit
max_retries: Option<u32>
Maximum number of retry attempts (None for infinite)
shard_refresh_interval: Duration
How often to refresh the shard list
max_concurrent_shards: Option<u32>
Maximum number of shards to process concurrently
monitoring: MonitoringConfig
Monitoring configuration
initial_position: InitialPosition
Where to start reading from in the stream
prefer_stored_checkpoint: bool
Whether to prefer stored checkpoints over initial position
minimum_batch_retrieval_time: Duration
Minimum time to retrieve a batch of records from multiple client batch retrievals
max_batch_retrieval_loops: Option<u32>
Maximum number of loops to retrieve batches of records
Trait Implementations§
source§impl Clone for ProcessorConfig
impl Clone for ProcessorConfig
source§fn clone(&self) -> ProcessorConfig
fn clone(&self) -> ProcessorConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ProcessorConfig
impl Debug for ProcessorConfig
Auto Trait Implementations§
impl Freeze for ProcessorConfig
impl RefUnwindSafe for ProcessorConfig
impl Send for ProcessorConfig
impl Sync for ProcessorConfig
impl Unpin for ProcessorConfig
impl UnwindSafe for ProcessorConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.