Class KafkaResumeAdapter
java.lang.Object
org.apache.camel.component.kafka.consumer.support.resume.KafkaResumeAdapter
- All Implemented Interfaces:
org.apache.camel.resume.Cacheable,org.apache.camel.resume.Deserializable,org.apache.camel.resume.ResumeAdapter
@JdkService("kafka-adapter-factory")
public class KafkaResumeAdapter
extends Object
implements org.apache.camel.resume.ResumeAdapter, org.apache.camel.resume.Deserializable, org.apache.camel.resume.Cacheable
-
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) voidsetConsumer(org.apache.kafka.clients.consumer.Consumer<?, ?> consumer) Methods 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
-
KafkaResumeAdapter
public KafkaResumeAdapter()
-
-
Method Details
-
resume
public void resume()- Specified by:
resumein interfaceorg.apache.camel.resume.ResumeAdapter
-
deserialize
- Specified by:
deserializein interfaceorg.apache.camel.resume.Deserializable
-
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
-
setConsumer
public void setConsumer(org.apache.kafka.clients.consumer.Consumer<?, ?> consumer)
-