public class ZkTransientStoreFactory extends Object implements TransientStoreFactory
| Constructor and Description |
|---|
ZkTransientStoreFactory(org.apache.curator.framework.CuratorFramework curator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<V> ZkEphemeralStore<V> |
getOrCreateStore(TransientStoreConfig<V> config)
Returns a
transient store instance for the given configuration. |
public ZkTransientStoreFactory(org.apache.curator.framework.CuratorFramework curator)
public <V> ZkEphemeralStore<V> getOrCreateStore(TransientStoreConfig<V> config)
TransientStoreFactorytransient store instance for the given configuration.
Note that implementors have liberty to cache previous store instances.getOrCreateStore in interface TransientStoreFactoryV - store value typeconfig - store configurationpublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.