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.

@FunctionalInterface public interface OperationListener
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    operationAdded(BytesReference data, long seqNo, Translog.Location location)
    This method is called when a new operation is added to the translog.
  • Method Details

    • operationAdded

      void operationAdded(BytesReference data, long seqNo, Translog.Location location)
      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 add
      seqNo - the sequence number of the operation
      location - the location written