public class TLSActor.ChoppingBlock extends java.lang.Object implements TransferState
Constructor and Description |
---|
ChoppingBlock(int idx,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
chopInto(java.nio.ByteBuffer b)
Pour as many bytes as are available either on the chopping block or in
the inputBunch’s next ByteString into the supplied ByteBuffer, which is
expected to be in “read left-overs” mode, i.e.
|
boolean |
isCompleted() |
boolean |
isEmpty()
Whether there are no bytes lying on this chopping block.
|
boolean |
isReady() |
void |
prepare(java.nio.ByteBuffer b)
Prepare a fresh ByteBuffer for receiving a chop of data.
|
void |
putBack(java.nio.ByteBuffer b)
When potentially complete packet data are left after unwrap() we must
put them back onto the chopping block because otherwise the pump will
not know that we are runnable.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isExecutable
public boolean isReady()
isReady
in interface TransferState
public boolean isCompleted()
isCompleted
in interface TransferState
public boolean isEmpty()
public void chopInto(java.nio.ByteBuffer b)
prepare()
.b
- (undocumented)public void putBack(java.nio.ByteBuffer b)
b
- (undocumented)public void prepare(java.nio.ByteBuffer b)
b
- (undocumented)