E - type of elements in the pipe.public interface Pipe<E>
| Modifier and Type | Method and Description | 
|---|---|
| long | addedCount()The number of items added to this container since creation. | 
| int | capacity()The maximum capacity of this container to hold items. | 
| int | drain(Consumer<E> elementHandler)Invoke a  Consumercallback on each elements to drain the collection of elements until it is empty. | 
| int | drainTo(Collection<? super E> target,
       int limit)Drain available elements into the provided  Collectionup to a provided maximum limit of elements. | 
| int | remainingCapacity()Get the remaining capacity for elements in the container given the current size. | 
| long | removedCount()The number of items removed from this container since creation. | 
long addedCount()
long removedCount()
int capacity()
int remainingCapacity()
int drain(Consumer<E> elementHandler)
Consumer callback on each elements to drain the collection of elements until it is empty.
 If possible, implementations should use smart batching to best handle burst traffic.elementHandler - to callback for processing elementsint drainTo(Collection<? super E> target, int limit)
Collection up to a provided maximum limit of elements.
 If possible, implementations should use smart batching to best handle burst traffic.target - in to which elements are drained.limit - of the maximum number of elements to drain.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.