private static final class ReleasableSSLBufferManagementStrategy.InternalBuffer extends Object implements SSLBuffer
Modifier and Type | Field and Description |
---|---|
private int |
length |
private ByteBuffer |
wrapped |
Constructor and Description |
---|
InternalBuffer(int size) |
Modifier and Type | Method and Description |
---|---|
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.
|
private ByteBuffer wrapped
private final int length
public InternalBuffer(int size)
public ByteBuffer acquire()
SSLBuffer
SSLBuffer.release()
is called, multiple invokations to this method must return the same
ByteBuffer
.public void release()
SSLBuffer
public boolean isAcquired()
SSLBuffer
isAcquired
in interface SSLBuffer
true
if the buffer is acquired, otherwise false
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses