Class DistributedStore

java.lang.Object
io.airlift.discovery.store.DistributedStore

public class DistributedStore extends Object
A simple, eventually consistent, fully replicated, distributed key-value store.
  • Constructor Details

    • DistributedStore

      @Inject public DistributedStore(String name, LocalStore localStore, RemoteStore remoteStore, StoreConfig config, com.google.common.base.Supplier<org.joda.time.DateTime> timeSupplier)
  • Method Details

    • start

      @PostConstruct public void start()
    • getName

      public String getName()
    • getLastGcTimestamp

      public long getLastGcTimestamp()
    • removeExpiredEntries

      public void removeExpiredEntries()
    • shutdown

      @PreDestroy public void shutdown()
    • put

      public void put(byte[] key, byte[] value)
    • put

      public void put(byte[] key, byte[] value, io.airlift.units.Duration maxAge)
    • get

      public byte[] get(byte[] key)
    • delete

      public void delete(byte[] key)
    • getAll

      public Iterable<Entry> getAll()