public class CachingTransientStoreFactory extends Object implements TransientStoreFactory
Constructor and Description |
---|
CachingTransientStoreFactory(TransientStoreFactory delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
<V> TransientStore<V> |
getOrCreateStore(TransientStoreConfig<V> config)
Returns a
transient store instance for the given configuration. |
static TransientStoreFactory |
of(TransientStoreFactory delegate) |
public CachingTransientStoreFactory(TransientStoreFactory delegate)
public <V> TransientStore<V> getOrCreateStore(TransientStoreConfig<V> config)
TransientStoreFactory
transient store
instance for the given configuration.
Note that implementors have liberty to cache previous store
instances.getOrCreateStore
in interface TransientStoreFactory
V
- store value typeconfig
- store configurationpublic void close() throws Exception
close
in interface AutoCloseable
Exception
public static TransientStoreFactory of(TransientStoreFactory delegate)
Copyright © 1970 The Apache Software Foundation. All rights reserved.