Class MemoryBuffer<T>

java.lang.Object
io.datarouter.conveyor.MemoryBuffer<T>
All Implemented Interfaces:
Buffer
Direct Known Subclasses:
DatabeanBuffer

public class MemoryBuffer<T>
extends java.lang.Object
implements Buffer
  • Constructor Summary

    Constructors 
    Constructor Description
    MemoryBuffer​(java.lang.String name, int maxSize)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getName()  
    boolean offer​(T obj)  
    boolean offerMulti​(java.util.Collection<T> objects)  
    java.util.List<T> pollMultiWithLimit​(int limit)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MemoryBuffer

      public MemoryBuffer​(java.lang.String name, int maxSize)
  • Method Details

    • getName

      public java.lang.String getName()
      Specified by:
      getName in interface Buffer
    • offer

      public boolean offer​(T obj)
    • offerMulti

      public boolean offerMulti​(java.util.Collection<T> objects)
    • pollMultiWithLimit

      public java.util.List<T> pollMultiWithLimit​(int limit)