Class SnapshotsCache
java.lang.Object
org.gridgain.internal.snapshots.coordinator.SnapshotsCache
- All Implemented Interfaces:
Flow.Subscriber<org.apache.ignite.internal.metastorage.Entry>,org.apache.ignite.internal.metastorage.WatchListener
public class SnapshotsCache
extends Object
implements Flow.Subscriber<org.apache.ignite.internal.metastorage.Entry>, org.apache.ignite.internal.metastorage.WatchListener
Snapshots cache that stores the latest snapshot id for each table.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA cache frame for a single moment in time. -
Method Summary
Modifier and TypeMethodDescriptionget()init()Initializes the cache.voidvoidvoidonNext(org.apache.ignite.internal.metastorage.Entry entry) voidonSubscribe(Flow.Subscription subscription) onUpdate(org.apache.ignite.internal.metastorage.WatchEvent event)
-
Method Details
-
get
-
init
Initializes the cache.- Returns:
- Future that will be completed when the cache is fully initialized.
-
onSubscribe
- Specified by:
onSubscribein interfaceFlow.Subscriber<org.apache.ignite.internal.metastorage.Entry>
-
onNext
public void onNext(org.apache.ignite.internal.metastorage.Entry entry) - Specified by:
onNextin interfaceFlow.Subscriber<org.apache.ignite.internal.metastorage.Entry>
-
onUpdate
- Specified by:
onUpdatein interfaceorg.apache.ignite.internal.metastorage.WatchListener
-
onError
- Specified by:
onErrorin interfaceFlow.Subscriber<org.apache.ignite.internal.metastorage.Entry>
-
onComplete
public void onComplete()- Specified by:
onCompletein interfaceFlow.Subscriber<org.apache.ignite.internal.metastorage.Entry>
-