Class KinesisDefaultResumeAdapter
java.lang.Object
org.apache.camel.component.aws2.kinesis.consumer.KinesisDefaultResumeAdapter
- All Implemented Interfaces:
KinesisResumeAdapter,org.apache.camel.resume.Cacheable,org.apache.camel.resume.Deserializable,org.apache.camel.resume.ResumeAdapter
@JdkService("adapter-factory")
public class KinesisDefaultResumeAdapter
extends Object
implements KinesisResumeAdapter, org.apache.camel.resume.Cacheable, org.apache.camel.resume.Deserializable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.camel.resume.Cacheable
org.apache.camel.resume.Cacheable.FillPolicy -
Field Summary
Fields inherited from interface org.apache.camel.resume.ResumeAdapter
RESUME_ADAPTER_FACTORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(org.apache.camel.resume.OffsetKey<?> key, org.apache.camel.resume.Offset<?> offset) booleandeserialize(ByteBuffer keyBuffer, ByteBuffer valueBuffer) org.apache.camel.resume.cache.ResumeCache<?>getCache()voidresume()voidsetCache(org.apache.camel.resume.cache.ResumeCache<?> cache) voidsetRequestBuilder(software.amazon.awssdk.services.kinesis.model.GetShardIteratorRequest.Builder resumable) Sets the shard iterator request builder that can be used to customize the call and set the exact resume pointvoidsetStreamName(String streamName) Sets the stream name being worked onMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.resume.Cacheable
getFillPolicyMethods inherited from interface org.apache.camel.resume.Deserializable
deserializeKey, deserializeObject, deserializeValue
-
Constructor Details
-
KinesisDefaultResumeAdapter
public KinesisDefaultResumeAdapter()
-
-
Method Details
-
setRequestBuilder
public void setRequestBuilder(software.amazon.awssdk.services.kinesis.model.GetShardIteratorRequest.Builder resumable) Description copied from interface:KinesisResumeAdapterSets the shard iterator request builder that can be used to customize the call and set the exact resume point- Specified by:
setRequestBuilderin interfaceKinesisResumeAdapter- Parameters:
resumable- the builder instance
-
resume
public void resume()- Specified by:
resumein interfaceorg.apache.camel.resume.ResumeAdapter
-
add
public boolean add(org.apache.camel.resume.OffsetKey<?> key, org.apache.camel.resume.Offset<?> offset) - Specified by:
addin interfaceorg.apache.camel.resume.Cacheable
-
setCache
public void setCache(org.apache.camel.resume.cache.ResumeCache<?> cache) - Specified by:
setCachein interfaceorg.apache.camel.resume.Cacheable
-
getCache
public org.apache.camel.resume.cache.ResumeCache<?> getCache()- Specified by:
getCachein interfaceorg.apache.camel.resume.Cacheable
-
deserialize
- Specified by:
deserializein interfaceorg.apache.camel.resume.Deserializable
-
setStreamName
Description copied from interface:KinesisResumeAdapterSets the stream name being worked on- Specified by:
setStreamNamein interfaceKinesisResumeAdapter- Parameters:
streamName- the stream name
-