Package org.opensearch.indices.recovery
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.
Writes a partial file chunk to the target store.
- Opensearch.internal:
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
cancel()
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()
-