Class ARCWriterPool
java.lang.Object
org.archive.io.WriterPool
org.archive.io.arc.ARCWriterPool
-
Field Summary
Fields inherited from class org.archive.io.WriterPool
availableWriters, currentActive, DEFAULT_MAX_ACTIVE, DEFAULT_MAX_WAIT_FOR_IDLE, LARGEST_MAX_ACTIVE, lastWriterNeededTime, lastWriterRolloverTime, maxActive, maxWait, serialNo, settings -
Constructor Summary
ConstructorsConstructorDescriptionARCWriterPool(AtomicInteger serial, WriterPoolSettings settings, int poolMaximumActive, int poolMaximumWait) ConstructorARCWriterPool(WriterPoolSettings settings, int poolMaximumActive, int poolMaximumWait) Constructor -
Method Summary
Methods inherited from class org.archive.io.WriterPool
borrowFile, close, destroyWriter, drainAllWriters, flush, getNumActive, getNumIdle, getPoolState, getSerialNo, getSettings, invalidateFile, jsonStatus, makeNewWriterIfAppropriate, returnFile
-
Constructor Details
-
ARCWriterPool
Constructor- Parameters:
settings- Settings for this pool.poolMaximumActive-poolMaximumWait-
-
ARCWriterPool
public ARCWriterPool(AtomicInteger serial, WriterPoolSettings settings, int poolMaximumActive, int poolMaximumWait) Constructor- Parameters:
serial- Used to generate unique filename sequencessettings- Settings for this pool.poolMaximumActive-poolMaximumWait-
-
-
Method Details
-
makeWriter
- Specified by:
makeWriterin classWriterPool- Returns:
- new WriterPoolMember of appropriate type
-