Interface TransactionPendingAckStoreProvider
-
- All Known Implementing Classes:
InMemoryPendingAckStoreProvider,MLPendingAckStoreProvider
public interface TransactionPendingAckStoreProviderProvider of transaction pending ack store.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Boolean>checkInitializedBefore(PersistentSubscription subscription)Check pending ack store has been initialized before.java.util.concurrent.CompletableFuture<PendingAckStore>newPendingAckStore(PersistentSubscription subscription)Open the pending ack store.static TransactionPendingAckStoreProvidernewProvider(java.lang.String providerClassName)Construct a provider from the provided class.
-
-
-
Method Detail
-
newProvider
static TransactionPendingAckStoreProvider newProvider(java.lang.String providerClassName) throws java.io.IOException
Construct a provider from the provided class.- Parameters:
providerClassName-Stringthe provider class name- Returns:
- an instance of transaction buffer provider.
- Throws:
java.io.IOException
-
newPendingAckStore
java.util.concurrent.CompletableFuture<PendingAckStore> newPendingAckStore(PersistentSubscription subscription)
Open the pending ack store.- Parameters:
subscription-PersistentSubscription- Returns:
- a future represents the result of the operation.
an instance of
PendingAckStoreis returned if the operation succeeds.
-
checkInitializedBefore
java.util.concurrent.CompletableFuture<java.lang.Boolean> checkInitializedBefore(PersistentSubscription subscription)
Check pending ack store has been initialized before.- Parameters:
subscription-PersistentSubscription- Returns:
- a future represents the result of the operation.
an instance of
Booleanis returned if the operation succeeds.
-
-