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.
  • Method Details

    • get

    • init

      public CompletableFuture<Void> init()
      Initializes the cache.
      Returns:
      Future that will be completed when the cache is fully initialized.
    • onSubscribe

      public void onSubscribe(Flow.Subscription subscription)
      Specified by:
      onSubscribe in interface Flow.Subscriber<org.apache.ignite.internal.metastorage.Entry>
    • onNext

      public void onNext(org.apache.ignite.internal.metastorage.Entry entry)
      Specified by:
      onNext in interface Flow.Subscriber<org.apache.ignite.internal.metastorage.Entry>
    • onUpdate

      public CompletableFuture<Void> onUpdate(org.apache.ignite.internal.metastorage.WatchEvent event)
      Specified by:
      onUpdate in interface org.apache.ignite.internal.metastorage.WatchListener
    • onError

      public void onError(Throwable throwable)
      Specified by:
      onError in interface Flow.Subscriber<org.apache.ignite.internal.metastorage.Entry>
    • onComplete

      public void onComplete()
      Specified by:
      onComplete in interface Flow.Subscriber<org.apache.ignite.internal.metastorage.Entry>