Class ElasticsearchSinkBase.BulkFlushBackoffPolicy
- java.lang.Object
-
- org.apache.flink.streaming.connectors.elasticsearch.ElasticsearchSinkBase.BulkFlushBackoffPolicy
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ElasticsearchSinkBase<T,C extends AutoCloseable>
public static class ElasticsearchSinkBase.BulkFlushBackoffPolicy extends Object implements Serializable
Provides a backoff policy for bulk requests. Whenever a bulk request is rejected due to resource constraints (i.e. the client's internal thread pool is full), the backoff policy decides how long the bulk processor will wait before the operation is retried internally.This is a proxy for version specific backoff policies.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BulkFlushBackoffPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElasticsearchSinkBase.FlushBackoffTypegetBackoffType()longgetDelayMillis()intgetMaxRetryCount()voidsetBackoffType(ElasticsearchSinkBase.FlushBackoffType backoffType)voidsetDelayMillis(long delayMillis)voidsetMaxRetryCount(int maxRetryCount)
-
-
-
Method Detail
-
getBackoffType
public ElasticsearchSinkBase.FlushBackoffType getBackoffType()
-
getMaxRetryCount
public int getMaxRetryCount()
-
getDelayMillis
public long getDelayMillis()
-
setBackoffType
public void setBackoffType(ElasticsearchSinkBase.FlushBackoffType backoffType)
-
setMaxRetryCount
public void setMaxRetryCount(int maxRetryCount)
-
setDelayMillis
public void setDelayMillis(long delayMillis)
-
-