| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private long | |
| private final Queue | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | |
| public synchronized void | |
| public synchronized void | |
| public synchronized CryptoFrame | Returns: frame with next portion of crypto data, or nullmaximum size of the returned frame, in bytes maxSize)Stores the next portion of queued crypto data in a frame. |
| public synchronized int | Returns: the current number of buffered bytesReturns the current number of buffered bytes. |
| public synchronized void | |
| public synchronized void |
| keepReplayData | back to summary |
|---|---|
| private boolean keepReplayData | |
| position | back to summary |
|---|---|
| private long position | |
| queue | back to summary |
|---|---|
| private final Queue<ByteBuffer> queue | |
| totalRemaining | back to summary |
|---|---|
| private int totalRemaining | |
| CryptoWriterQueue | back to summary |
|---|---|
| public CryptoWriterQueue() | |
| discardReplayData | back to summary |
|---|---|
| public synchronized void discardReplayData() Notify the writer to stop keeping processed data. | |
| enqueue | back to summary |
|---|---|
| public synchronized void enqueue(ByteBuffer buffer) Enqueues the provided crypto data
| |
| keepReplayData | back to summary |
|---|---|
| public synchronized void keepReplayData() Notify the writer to start keeping processed data. Can only be called on a fresh writer.
| |
| produceFrame | back to summary |
|---|---|
| public synchronized CryptoFrame produceFrame(int maxSize) Stores the next portion of queued crypto data in a frame. May return null if there's no data to enqueue or if maxSize is too small to fit at least one byte of data. The produced frame may be shorter than maxSize even if there are remaining bytes.
| |
| remaining | back to summary |
|---|---|
| public synchronized int remaining() Returns the current number of buffered bytes.
| |
| replayData | back to summary |
|---|---|
| public synchronized void replayData() Rewinds the enqueued buffer positions to allow for replaying the data
| |
| reset | back to summary |
|---|---|
| public synchronized void reset() Clears the queue and resets position back to zero | |