|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcascading.property.Props
cascading.pipe.assembly.UniqueProps
public class UniqueProps
Class UniqueProps is a fluent helper for setting various properties related to the cache used in Unique
.
Field Summary | |
---|---|
static Class<? extends BaseCacheFactory> |
DEFAULT_CACHE_FACTORY_CLASS
default factory class for creating caches. |
static String |
UNIQUE_CACHE_CAPACITY
property to control the capacity of the cache to use. |
static 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 Summary | |
---|---|
UniqueProps()
|
Method Summary | |
---|---|
protected void |
addPropertiesTo(Properties properties)
|
String |
getCacheFactoryClassName()
Returns the name of the cache factory. |
int |
getCapacity()
Returns the capacity. |
UniqueProps |
setCacheFactoryClass(Class<? extends BaseCacheFactory> cacheFactory)
Sets the CacheFactory class to use. |
UniqueProps |
setCacheFactoryClassName(String cacheFactoryClassName)
Sets the name of the CacheFactory to use. |
UniqueProps |
setCapacity(int capacity)
Sets the capacity of the cache. |
static UniqueProps |
uniqueProps()
|
Methods inherited from class cascading.property.Props |
---|
buildProperties, buildProperties, buildProperties, buildProperties, setProperties, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String UNIQUE_CACHE_FACTORY
public static final String UNIQUE_CACHE_CAPACITY
public static int UNIQUE_DEFAULT_CAPACITY
public static final Class<? extends BaseCacheFactory> DEFAULT_CACHE_FACTORY_CLASS
Constructor Detail |
---|
public UniqueProps()
Method Detail |
---|
public static UniqueProps uniqueProps()
public UniqueProps setCacheFactoryClass(Class<? extends BaseCacheFactory> cacheFactory)
cacheFactory
- The cache factory class to use.public UniqueProps setCacheFactoryClassName(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 String getCacheFactoryClassName()
protected void addPropertiesTo(Properties properties)
addPropertiesTo
in class Props
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |