public class TransactionStateCacheSupplier extends Object implements CacheSupplier<TransactionStateCache>
TransactionStateCache
implementations.Constructor and Description |
---|
TransactionStateCacheSupplier(org.apache.hadoop.conf.Configuration conf) |
TransactionStateCacheSupplier(com.google.common.base.Supplier<TransactionStateCache> supplier) |
Modifier and Type | Method and Description |
---|---|
TransactionStateCache |
get()
Returns a singleton instance of the transaction state cache, performing lazy initialization if necessary.
|
void |
release()
Release the object obtained through {code Supplier#get()}.
|
public TransactionStateCacheSupplier(com.google.common.base.Supplier<TransactionStateCache> supplier)
public TransactionStateCacheSupplier(org.apache.hadoop.conf.Configuration conf)
public TransactionStateCache get()
get
in interface com.google.common.base.Supplier<TransactionStateCache>
get
in interface CacheSupplier<TransactionStateCache>
public void release()
CacheSupplier
release
in interface CacheSupplier<TransactionStateCache>
Copyright © 2017 The Apache Software Foundation. All rights reserved.