Package org.infinispan.persistence.sifs
Class LogAppender
java.lang.Object
org.infinispan.persistence.sifs.LogAppender
- All Implemented Interfaces:
io.reactivex.rxjava3.functions.Consumer<org.infinispan.persistence.sifs.LogAppender.WriteOperation>
public class LogAppender
extends Object
implements io.reactivex.rxjava3.functions.Consumer<org.infinispan.persistence.sifs.LogAppender.WriteOperation>
-
Constructor Summary
ConstructorDescriptionLogAppender
(NonBlockingManager nonBlockingManager, org.infinispan.persistence.sifs.Index index, TemporaryTable temporaryTable, org.infinispan.persistence.sifs.Compactor compactor, FileProvider fileProvider, boolean syncWrites, int maxFileSize) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(org.infinispan.persistence.sifs.LogAppender.WriteOperation writeOperation) Clears all the log entries returning a stage when the completion is done.void
complete
(io.reactivex.rxjava3.functions.Consumer<LogAppender> consumer) deleteRequest
(int segment, Object key, ByteBuffer serializedKey) pause()
resume()
void
setSeqId
(long seqId) void
void
stop()
<K,
V> CompletionStage<Void> storeRequest
(int segment, MarshallableEntry<K, V> entry)
-
Constructor Details
-
LogAppender
public LogAppender(NonBlockingManager nonBlockingManager, org.infinispan.persistence.sifs.Index index, TemporaryTable temporaryTable, org.infinispan.persistence.sifs.Compactor compactor, FileProvider fileProvider, boolean syncWrites, int maxFileSize)
-
-
Method Details
-
start
-
stop
public void stop() -
clearAndPause
Clears all the log entries returning a stage when the completion is done. Note that after the clear is complete this appender will also be paused. To resume it callers must ensure they invokeresume()
to restart the appender- Returns:
- a stage that when complete the log will be cleared and this appender is paused
-
pause
-
resume
-
storeRequest
-
deleteRequest
-
accept
public void accept(org.infinispan.persistence.sifs.LogAppender.WriteOperation writeOperation) - Specified by:
accept
in interfaceio.reactivex.rxjava3.functions.Consumer<org.infinispan.persistence.sifs.LogAppender.WriteOperation>
-
complete
public void complete(io.reactivex.rxjava3.functions.Consumer<LogAppender> consumer) throws Throwable - Throws:
Throwable
-
setSeqId
public void setSeqId(long seqId)
-