Uses of Interface
Utility classes, mainly for adapted buffers to specific needs.
Uses of BufferCollector in org.jgrapes.io.utilModifier and TypeClassDescription
classA queue based buffer pool.Modifier and TypeFieldDescriptionBufferCollector.
NOOP_COLLECTORA predefined buffer collector that does nothing when the managed buffer is no longer used.Modifier and TypeMethodDescriptionManagedBuffer.
manager()Return the buffer’s manager.BufferCollector.
noopCollector()A type-safe way to get the
NOOP_COLLECTOR.ModifierConstructorDescriptionCreate a new Managed buffer, backed by the given buffer, with a lock count of one.ModifierConstructorDescription
(BiFunction<T, BufferCollector<W>, W> wrapper, Supplier<T> bufferFactory, int buffers)Create a pool that keeps up to the given number of (wrapped) buffers in the pool and also uses that number as upper limit.
(BiFunction<T, BufferCollector<W>, W> wrapper, Supplier<T> bufferFactory, int lowerThreshold, int upperLimit)Create a pool that contains a varying number of (wrapped) buffers.