public class TransactionStateCacheSupplier extends Object implements com.google.common.base.Supplier<TransactionStateCache>
TransactionStateCache
implementations.Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.conf.Configuration |
conf |
protected static TransactionStateCache |
instance |
protected static Object |
lock |
Constructor and Description |
---|
TransactionStateCacheSupplier(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
TransactionStateCache |
get()
Returns a singleton instance of the transaction state cache, performing lazy initialization if necessary.
|
protected static volatile TransactionStateCache instance
protected static Object lock
protected final org.apache.hadoop.conf.Configuration conf
public TransactionStateCacheSupplier(org.apache.hadoop.conf.Configuration conf)
public TransactionStateCache get()
get
in interface com.google.common.base.Supplier<TransactionStateCache>
Copyright © 2017 The Apache Software Foundation. All rights reserved.