Class TargetedDataFileAppender
java.lang.Object
org.apache.activemq.store.kahadb.disk.journal.TargetedDataFileAppender
- All Implemented Interfaces:
AutoCloseable,FileAppender
File Appender instance that performs batched writes in the thread where the write is
queued. This appender does not honor the maxFileLength value in the journal as the
files created here are out-of-band logs used for other purposes such as journal level
compaction.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.apache.activemq.store.kahadb.disk.journal.FileAppender
maxStat, PROPERTY_LOG_WRITE_STAT_WINDOW -
Constructor Summary
ConstructorsConstructorDescriptionTargetedDataFileAppender(Journal journal, DataFile target) Construct a Store writer -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanvoidsetPreallocate(boolean preallocate) storeItem(ByteSequence data, byte type, boolean sync) storeItem(ByteSequence data, byte type, Runnable onComplete)
-
Constructor Details
-
TargetedDataFileAppender
Construct a Store writer
-
-
Method Details
-
storeItem
- Specified by:
storeItemin interfaceFileAppender- Throws:
IOException
-
storeItem
- Specified by:
storeItemin interfaceFileAppender- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceFileAppender- Throws:
IOException
-
isPreallocate
public boolean isPreallocate() -
setPreallocate
public void setPreallocate(boolean preallocate)
-