T - The generic type of the items in the streampublic class InMemoryObjectStreamBuffer<T> extends AbstractObjectStreamBuffer<T>
AbstractObjectStreamBuffer implementation which uses buckets for locating items.AbstractStreamingBuffer.LockReleaserclosed, readLock, writeLock| Constructor and Description |
|---|
InMemoryObjectStreamBuffer(StreamingIterator<T> stream,
InMemoryCursorIteratorConfig config) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doClose() |
protected Optional<Bucket<T>> |
getPresentBucket(Position position) |
protected void |
initialize(Optional<Position> maxPosition,
Bucket<T> initialBucket) |
protected Bucket<T> |
onBucketOverflow(Bucket<T> overflownBucket) |
Position |
toPosition(long position)
Transforms the given index based
position to a Position
object |
protected void |
validateMaxBufferSizeNotExceeded(int instancesCount) |
close, getBucketFor, getCurrentBucket, getSize, hasNext, initialise, setCurrentBucket, setMaxPositioncheckNotClosed, closeSafely, withReadLock, withWriteLockpublic InMemoryObjectStreamBuffer(StreamingIterator<T> stream, InMemoryCursorIteratorConfig config)
protected void doClose()
doClose in class AbstractObjectStreamBuffer<T>public Position toPosition(long position)
position to a Position
objectposition - a zero based index positionPositionprotected void initialize(Optional<Position> maxPosition, Bucket<T> initialBucket)
initialize in class AbstractObjectStreamBuffer<T>protected Optional<Bucket<T>> getPresentBucket(Position position)
getPresentBucket in class AbstractObjectStreamBuffer<T>protected Bucket<T> onBucketOverflow(Bucket<T> overflownBucket)
onBucketOverflow in class AbstractObjectStreamBuffer<T>protected void validateMaxBufferSizeNotExceeded(int instancesCount)
validateMaxBufferSizeNotExceeded in class AbstractObjectStreamBuffer<T>Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.