All Known Implementing Classes:
ArrayBlockingQueueBuffer, Buffer

public interface QueueBuffer<T>
Queue buffer interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    void
    obtain(List<T> consumeList)
    Obtain the existing data from the queue
    boolean
    save(T data)
    Save data into the queue;
    void
    Set different strategy when queue is full.
  • Method Details

    • save

      boolean save(T data)
      Save data into the queue;
      Parameters:
      data - to add.
      Returns:
      true if saved
    • setStrategy

      void setStrategy(BufferStrategy strategy)
      Set different strategy when queue is full.
    • obtain

      void obtain(List<T> consumeList)
      Obtain the existing data from the queue
    • getBufferSize

      int getBufferSize()