Package io.debezium.storage.redis.offset
Class RedisOffsetBackingStore
java.lang.Object
org.apache.kafka.connect.storage.MemoryOffsetBackingStore
io.debezium.storage.redis.offset.RedisOffsetBackingStore
- All Implemented Interfaces:
org.apache.kafka.connect.storage.OffsetBackingStore
public class RedisOffsetBackingStore
extends org.apache.kafka.connect.storage.MemoryOffsetBackingStore
Implementation of OffsetBackingStore that saves to Redis
- Author:
- Oren Elias
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate RedisClientprivate static final Stringprivate Integerstatic final Integerstatic final Stringstatic final Integerstatic final Integerstatic final Integerprivate static final booleanprivate static final longprivate static final booleanprivate static final longprivate Integerprivate static final org.slf4j.Loggerprivate Integerprivate Stringstatic final Fieldstatic final Fieldstatic final Fieldstatic final Fieldstatic final Fieldstatic final Fieldstatic final Fieldstatic final Fieldstatic final Fieldprivate static final Fieldprivate static final Fieldprivate static final Fieldprivate static final Fieldprivate Stringprivate Integerprivate booleanprivate Stringprivate booleanprivate longprivate booleanprivate longFields inherited from class org.apache.kafka.connect.storage.MemoryOffsetBackingStore
data, executor -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.kafka.connect.storage.MemoryOffsetBackingStore
get, set
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
CONFIGURATION_FIELD_PREFIX_STRING
- See Also:
-
PROP_ADDRESS
-
PROP_SSL_ENABLED
-
PROP_USER
-
PROP_PASSWORD
-
DEFAULT_REDIS_KEY_NAME
- See Also:
-
PROP_KEY_NAME
-
DEFAULT_RETRY_INITIAL_DELAY
-
PROP_RETRY_INITIAL_DELAY
-
DEFAULT_RETRY_MAX_DELAY
-
PROP_RETRY_MAX_DELAY
-
DEFAULT_CONNECTION_TIMEOUT
-
PROP_CONNECTION_TIMEOUT
-
DEFAULT_SOCKET_TIMEOUT
-
PROP_SOCKET_TIMEOUT
-
DEFAULT_WAIT_ENABLED
private static final boolean DEFAULT_WAIT_ENABLED- See Also:
-
PROP_WAIT_ENABLED
-
DEFAULT_WAIT_TIMEOUT
private static final long DEFAULT_WAIT_TIMEOUT- See Also:
-
PROP_WAIT_TIMEOUT
-
DEFAULT_WAIT_RETRY_ENABLED
private static final boolean DEFAULT_WAIT_RETRY_ENABLED- See Also:
-
PROP_WAIT_RETRY_ENABLED
-
DEFAULT_WAIT_RETRY_DELAY
private static final long DEFAULT_WAIT_RETRY_DELAY- See Also:
-
PROP_WAIT_RETRY_DELAY
-
redisKeyName
-
address
-
user
-
password
-
sslEnabled
private boolean sslEnabled -
client
-
config
-
initialRetryDelay
-
maxRetryDelay
-
connectionTimeout
-
socketTimeout
-
waitEnabled
private boolean waitEnabled -
waitTimeout
private long waitTimeout -
waitRetryEnabled
private boolean waitRetryEnabled -
waitRetryDelay
private long waitRetryDelay
-
-
Constructor Details
-
RedisOffsetBackingStore
public RedisOffsetBackingStore()
-
-
Method Details
-
connect
void connect() -
configure
public void configure(org.apache.kafka.connect.runtime.WorkerConfig config) - Specified by:
configurein interfaceorg.apache.kafka.connect.storage.OffsetBackingStore- Overrides:
configurein classorg.apache.kafka.connect.storage.MemoryOffsetBackingStore
-
start
public void start()- Specified by:
startin interfaceorg.apache.kafka.connect.storage.OffsetBackingStore- Overrides:
startin classorg.apache.kafka.connect.storage.MemoryOffsetBackingStore
-
stop
public void stop()- Specified by:
stopin interfaceorg.apache.kafka.connect.storage.OffsetBackingStore- Overrides:
stopin classorg.apache.kafka.connect.storage.MemoryOffsetBackingStore
-
load
private void load()Load offsets from Redis keys -
save
protected void save()Save offsets to Redis keys- Overrides:
savein classorg.apache.kafka.connect.storage.MemoryOffsetBackingStore
-