public class UniqueProps extends Props
Unique
.Modifier and Type | Field and Description |
---|---|
static java.lang.Class<? extends BaseCacheFactory> |
DEFAULT_CACHE_FACTORY_CLASS
default factory class for creating caches.
|
static java.lang.String |
UNIQUE_CACHE_CAPACITY
property to control the capacity of the cache to use.
|
static java.lang.String |
UNIQUE_CACHE_FACTORY
property to control the cache factory used in Unique.
|
static int |
UNIQUE_DEFAULT_CAPACITY
default capacity of caches used in Unique.
|
Constructor and Description |
---|
UniqueProps() |
Modifier and Type | Method and Description |
---|---|
protected void |
addPropertiesTo(java.util.Properties properties) |
java.lang.String |
getCacheFactoryClassName()
Returns the name of the cache factory.
|
int |
getCapacity()
Returns the capacity.
|
UniqueProps |
setCacheFactoryClass(java.lang.Class<? extends BaseCacheFactory> cacheFactory)
Sets the CacheFactory class to use.
|
UniqueProps |
setCacheFactoryClassName(java.lang.String cacheFactoryClassName)
Sets the name of the CacheFactory to use.
|
UniqueProps |
setCapacity(int capacity)
Sets the capacity of the cache.
|
static UniqueProps |
uniqueProps() |
buildProperties, buildProperties, buildProperties, buildProperties, setProperties, setProperties
public static java.lang.String UNIQUE_CACHE_FACTORY
public static final java.lang.String UNIQUE_CACHE_CAPACITY
public static int UNIQUE_DEFAULT_CAPACITY
public static final java.lang.Class<? extends BaseCacheFactory> DEFAULT_CACHE_FACTORY_CLASS
public UniqueProps()
public static UniqueProps uniqueProps()
public UniqueProps setCacheFactoryClass(java.lang.Class<? extends BaseCacheFactory> cacheFactory)
cacheFactory
- The cache factory class to use.public UniqueProps setCacheFactoryClassName(java.lang.String cacheFactoryClassName)
cacheFactoryClassName
- The full name of the cache factory class to use.public UniqueProps setCapacity(int capacity)
capacity
- The capacity of the cache.public int getCapacity()
public java.lang.String getCacheFactoryClassName()
protected void addPropertiesTo(java.util.Properties properties)
addPropertiesTo
in class Props
Copyright © 2007-2017 Cascading Maintainers. All Rights Reserved.