public abstract class AbstractStreamingBuffer extends Object
cursors
to have concurrent access to the stream's content| Modifier and Type | Class and Description |
|---|---|
class |
AbstractStreamingBuffer.LockReleaser |
| Modifier and Type | Field and Description |
|---|---|
protected AtomicBoolean |
closed |
protected Lock |
readLock |
protected Lock |
writeLock |
| Constructor and Description |
|---|
AbstractStreamingBuffer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkNotClosed() |
protected void |
closeSafely(CheckedRunnable task) |
protected <T> T |
withReadLock(CheckedFunction<AbstractStreamingBuffer.LockReleaser,T> function) |
protected <T> T |
withWriteLock(CheckedSupplier<T> supplier) |
protected final AtomicBoolean closed
protected final Lock readLock
protected final Lock writeLock
protected <T> T withReadLock(CheckedFunction<AbstractStreamingBuffer.LockReleaser,T> function)
protected <T> T withWriteLock(CheckedSupplier<T> supplier)
protected void checkNotClosed()
protected void closeSafely(CheckedRunnable task)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.