| java.lang.Object org.compass.core.converter.basic.ThreadSafeFormat
ThreadSafeFormat | public class ThreadSafeFormat (Code) | | Wrapper around java.text.Format that can be called by multiple
threads concurrently.
Format has a high overhead in creating and is not thread safe. To make best
use of resources, the ThreadSafeFormat provides a dynamically sizing pool of
instances, each of which will only be called by a single thread at a time.
The pool has a maximum capacity, to limit overhead. If all instances in the
pool are in use and another is required, it shall block until one becomes
available.
author: kimchy |
Inner Class :public static interface FormatterFactory | |
Constructor Summary | |
public | ThreadSafeFormat(int initialPoolSize, int maxPoolSize, FormatterFactory formatterFactory) |
ThreadSafeFormat | public ThreadSafeFormat(int initialPoolSize, int maxPoolSize, FormatterFactory formatterFactory)(Code) | | |
|
|