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)
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 AutoCloseableExceptionpublic static TransientStoreFactory of(TransientStoreFactory delegate)
Copyright © 2021 The Apache Software Foundation. All rights reserved.