public class DefaultStorePersist extends Object implements StorePersist
| Constructor and Description |
|---|
DefaultStorePersist() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
backupStoreStateCheck() |
void |
executeWhenException() |
void |
executeWhenExecuteDataSessionTimeout(KafkaSubscribeConsumeThread kafkaSubscribeConsumeThread) |
void |
executeWhenOffsetReset(KafkaSubscribeConsumeThread consumeThread) |
KafkaConsumerOffset |
executeWhenReadNullFromBackupExternalStore(String topic,
Integer partition) |
KafkaConsumerOffset |
executeWhenReadNullFromMysql(String topic,
Integer partition) |
Boolean |
executeWhenSaveOffsetFailInMysqlAndExternalStore(KafkaConsumerOffset kafkaConsumerOffset) |
void |
executeWhenSessionTimeout(Integer count) |
KafkaConsumerOffset |
readOffsetFromBackupExternalStore(String topic,
int partition) |
Boolean |
saveOffsetInBackupExternalStore(KafkaConsumerOffset kafkaConsumerOffset) |
Boolean |
updateOwner(KafkaConsumerOffset kafkaConsumerOffset) |
public KafkaConsumerOffset readOffsetFromBackupExternalStore(String topic, int partition)
readOffsetFromBackupExternalStore in interface StorePersistpublic Boolean saveOffsetInBackupExternalStore(KafkaConsumerOffset kafkaConsumerOffset)
saveOffsetInBackupExternalStore in interface StorePersistpublic KafkaConsumerOffset executeWhenReadNullFromBackupExternalStore(String topic, Integer partition)
executeWhenReadNullFromBackupExternalStore in interface ExceptionHandlerpublic KafkaConsumerOffset executeWhenReadNullFromMysql(String topic, Integer partition)
executeWhenReadNullFromMysql in interface ExceptionHandlerpublic Boolean executeWhenSaveOffsetFailInMysqlAndExternalStore(KafkaConsumerOffset kafkaConsumerOffset)
executeWhenSaveOffsetFailInMysqlAndExternalStore in interface ExceptionHandlerpublic Boolean backupStoreStateCheck()
backupStoreStateCheck in interface StorePersistpublic Boolean updateOwner(KafkaConsumerOffset kafkaConsumerOffset)
updateOwner in interface StorePersistpublic void executeWhenSessionTimeout(Integer count)
executeWhenSessionTimeout in interface ExceptionHandlerpublic void executeWhenExecuteDataSessionTimeout(KafkaSubscribeConsumeThread kafkaSubscribeConsumeThread)
executeWhenExecuteDataSessionTimeout in interface ExceptionHandlerpublic void executeWhenOffsetReset(KafkaSubscribeConsumeThread consumeThread)
executeWhenOffsetReset in interface ExceptionHandlerpublic void executeWhenException()
executeWhenException in interface ExceptionHandlerCopyright © 2021. All rights reserved.