private static final class PermanentSSLBufferManagementStrategy.InternalBuffer extends java.lang.Object implements SSLBuffer
| Modifier and Type | Field and Description |
|---|---|
private java.nio.ByteBuffer |
buffer |
| Constructor and Description |
|---|
InternalBuffer(int size) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
acquire()
Allocates the resources required for this buffer, or returns the resources already allocated for this buffer.
|
boolean |
hasData()
Tests to make sure that the buffer has been acquired and the underlying buffer has a position larger than
0. |
boolean |
isAcquired()
Tests to see if this buffer has been acquired.
|
void |
release()
Releases the resources for this buffer.
|
public java.nio.ByteBuffer acquire()
SSLBufferSSLBuffer.release() is called, multiple invokations to this method must return the same
ByteBuffer.public void release()
SSLBufferpublic boolean isAcquired()
SSLBufferisAcquired in interface SSLBuffertrue if the buffer is acquired, otherwise falsepublic boolean hasData()
SSLBuffer0. Essentially the same as isAquired() && acquire().position > 0.