| java.lang.Object org.archive.io.WriterPool
All known Subclasses: org.archive.io.arc.ARCWriterPool, org.archive.io.warc.v10.WARCWriterPool, org.archive.io.warc.WARCWriterPool,
WriterPool | abstract public class WriterPool (Code) | | Pool of Writers.
Abstract. Override and pass in the Constructor a factory that creates
WriterPoolMember implementations.
author: stack |
DEFAULT_MAXIMUM_WAIT | final public static int DEFAULT_MAXIMUM_WAIT(Code) | | Maximum time to wait on a free file..
|
DEFAULT_MAX_ACTIVE | final public static int DEFAULT_MAX_ACTIVE(Code) | | Default maximum active number of files in the pool.
|
NO_MAX_IDLE | final protected static int NO_MAX_IDLE(Code) | | Don't enforce a maximum number of idle instances in pool.
To do so means GenericObjectPool will close files prematurely.
|
WriterPool | public WriterPool(AtomicInteger serial, BasePoolableObjectFactory factory, WriterPoolSettings settings, int poolMaximumActive, int poolMaximumWait)(Code) | | Constructor
Parameters: serial - Used to generate unique filename sequences Parameters: factory - Factory that knows how to make a WriterPoolMember. Parameters: settings - Settings for this pool. Parameters: poolMaximumActive - Parameters: poolMaximumWait - |
getPoolState | protected String getPoolState()(Code) | | State of the pool string |
getPoolState | protected String getPoolState(long startTime)(Code) | | Parameters: startTime - If we are passed a start time, we'll add differencebetween it and now to end of string. Pass -1 if don't want thisadded to end of state string. State of the pool string |
getSerialNo | public AtomicInteger getSerialNo()(Code) | | Returns the atomic integer used to generate serial numbers
for files.
the serial number generator |
|
|