Package com.linkedin.venice.store
Class StoreStateReader
- java.lang.Object
-
- com.linkedin.venice.store.StoreStateReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class StoreStateReader extends java.lang.Object implements java.io.Closeable
This class retrieves the corresponding Store object from a router endpoint which contains the latest store state. E.g. store level configs and versions. This class doesn't maintain any local cache of the retrieved store state.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
static StoreStateReader
getInstance(AbstractAvroStoreClient storeClient)
static StoreStateReader
getInstance(ClientConfig clientConfig)
Store
getStore()
-
-
-
Method Detail
-
getInstance
public static StoreStateReader getInstance(ClientConfig clientConfig)
-
getInstance
public static StoreStateReader getInstance(AbstractAvroStoreClient storeClient)
-
getStore
public Store getStore()
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
-