Module org.elasticsearch.server
Package org.elasticsearch.index.translog
Interface OperationListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
operationAdded
(BytesReference data, long seqNo, Translog.Location location) This method is called when a new operation is added to the translog.
-
Method Details
-
operationAdded
This method is called when a new operation is added to the translog. The BytesReference is a releasable instance, so it should not be retained beyond the scope of this method.- Parameters:
data
- a releasable bytes reference of the data addseqNo
- the sequence number of the operationlocation
- the location written
-