Interface RejectedTakeBufferHandler

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 RejectedTakeBufferHandler
If cursor catches the tail it means that the ring buffer is empty, any more buffer take request will be rejected. Specify the policy to handle the reject. This is a Lambda supported interface
Author:
yutianbao
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Reject take buffer request
  • Method Details

    • rejectTakeBuffer

      void rejectTakeBuffer(RingBuffer ringBuffer)
      Reject take buffer request
      Parameters:
      ringBuffer -