Class LogAppender

All Implemented Interfaces:

public class LogAppender extends Object implements io.reactivex.rxjava3.functions.Consumer<org.infinispan.persistence.sifs.LogAppender.WriteOperation>
  • Constructor Details

    • LogAppender

      public LogAppender(org.infinispan.util.concurrent.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

      public void start(Executor executor)
    • stop

      public void stop()
    • clearAndPause

      public CompletionStage<Void> 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 invoke resume() to restart the appender
      a stage that when complete the log will be cleared and this appender is paused
    • pause

      public CompletionStage<Void> pause()
    • resume

      public CompletionStage<Void> resume()
    • storeRequest

      public <K, V> CompletionStage<Void> storeRequest(int segment, MarshallableEntry<K,V> entry)
    • deleteRequest

      public CompletionStage<Boolean> deleteRequest(int segment, Object key, ByteBuffer serializedKey)
    • accept

      public void accept(org.infinispan.persistence.sifs.LogAppender.WriteOperation writeOperation)
    • setSeqId

      public void setSeqId(long seqId)