Uses of Interface
org.jgrapes.io.util.BufferCollector
Packages that use BufferCollector
Package
Description
Utility classes, mainly for adapted buffers to specific needs.
-
Uses of BufferCollector in org.jgrapes.io.util
Classes in org.jgrapes.io.util that implement BufferCollectorModifier and TypeClassDescriptionclassManagedBufferPool<W extends ManagedBuffer<T>,T extends Buffer> A queue based buffer pool.Fields in org.jgrapes.io.util declared as BufferCollectorModifier and TypeFieldDescriptionstatic final BufferCollector<? extends ManagedBuffer<?>> BufferCollector.NOOP_COLLECTORA predefined buffer collector that does nothing when the managed buffer is no longer used.Methods in org.jgrapes.io.util that return BufferCollectorModifier and TypeMethodDescriptionManagedBuffer.manager()Return the buffer’s manager.static <T extends ManagedBuffer<?>>
BufferCollector<T> BufferCollector.noopCollector()A type-safe way to get theNOOP_COLLECTOR.Constructors in org.jgrapes.io.util with parameters of type BufferCollectorModifierConstructorDescriptionManagedBuffer(T buffer, BufferCollector<ManagedBuffer<T>> manager) Create a new Managed buffer, backed by the given buffer, with a lock count of one.Constructor parameters in org.jgrapes.io.util with type arguments of type BufferCollectorModifierConstructorDescriptionManagedBufferPool(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.ManagedBufferPool(BiFunction<T, BufferCollector<W>, W> wrapper, Supplier<T> bufferFactory, int lowerThreshold, int upperLimit) Create a pool that contains a varying number of (wrapped) buffers.