Package org.apache.http.nio.reactor.ssl
Interface SSLBuffer
-
public interface SSLBuffer
Managed internal SSL buffer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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 than0
.boolean
isAcquired()
Tests to see if this buffer has been acquired.void
release()
Releases the resources for this buffer.
-
-
-
Method Detail
-
acquire
java.nio.ByteBuffer acquire()
Allocates the resources required for this buffer, or returns the resources already allocated for this buffer. Unlessrelease()
is called, multiple invokations to this method must return the sameByteBuffer
.- Returns:
- buffer
-
release
void release()
Releases the resources for this buffer. If the buffer has already been released, this method does nothing.
-
isAcquired
boolean isAcquired()
Tests to see if this buffer has been acquired.- Returns:
true
if the buffer is acquired, otherwisefalse
-
hasData
boolean hasData()
Tests to make sure that the buffer has been acquired and the underlying buffer has a position larger than0
. Essentially the same asisAquired() && acquire().position > 0
.- Returns:
true
if the buffer has been acquired and the underlying buffer's position is> 0
, otherwisefalse
-
-