Interface FileChunkWriter

All Known Subinterfaces:
RecoveryTargetHandler
All Known Implementing Classes:
RecoveryTarget, RemoteRecoveryTargetHandler, RemoteSegmentFileChunkWriter
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface FileChunkWriter
Writes a partial file chunk to the target store.
Opensearch.internal:
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
     
    void
    writeFileChunk(StoreFileMetadata fileMetadata, long position, org.opensearch.core.common.bytes.BytesReference content, boolean lastChunk, int totalTranslogOps, org.opensearch.core.action.ActionListener<Void> listener)
     
  • Method Details

    • writeFileChunk

      void writeFileChunk(StoreFileMetadata fileMetadata, long position, org.opensearch.core.common.bytes.BytesReference content, boolean lastChunk, int totalTranslogOps, org.opensearch.core.action.ActionListener<Void> listener)
    • cancel

      default void cancel()