Top Inners Constructors Methods
org.apache.hc.core5.reactor.ssl

pack-priv abstract Class SSLManagedBuffer

extends Object
Class Inheritance
Known Direct Subclasses
org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.StaticBuffer, org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.DynamicBuffer
Imports
java.nio.ByteBuffer, org.apache.hc.core5.util.Args

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract ByteBuffer

Returns:

buffer
acquire
()

Allocates the resources required for this buffer, or returns the resources already allocated for this buffer.

pack-priv static SSLManagedBuffer
create(final SSLBufferMode mode, final int size)

pack-priv abstract boolean

Returns:

true if the buffer has been acquired and the underlying buffer's position is > 0, otherwise false
hasData
()

Tests to make sure that the buffer has been acquired and the underlying buffer has a position larger than 0.

pack-priv abstract boolean

Returns:

true if the buffer is acquired, otherwise false
isAcquired
()

Tests to see if this buffer has been acquired.

pack-priv abstract void
release()

Releases the resources for this buffer.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SSLManagedBufferback to summary
pack-priv SSLManagedBuffer()

Method Detail

acquireback to summary
pack-priv abstract ByteBuffer acquire()

Allocates the resources required for this buffer, or returns the resources already allocated for this buffer. Unless release() is called, multiple invocations to this method must return the same java.nio.ByteBuffer.

Returns:ByteBuffer

buffer

createback to summary
pack-priv static SSLManagedBuffer create(final SSLBufferMode mode, final int size)
hasDataback to summary
pack-priv abstract boolean hasData()

Tests to make sure that the buffer has been acquired and the underlying buffer has a position larger than 0. Essentially the same as isAquired() && acquire().position > 0.

Returns:boolean

true if the buffer has been acquired and the underlying buffer's position is > 0, otherwise false

isAcquiredback to summary
pack-priv abstract boolean isAcquired()

Tests to see if this buffer has been acquired.

Returns:boolean

true if the buffer is acquired, otherwise false

releaseback to summary
pack-priv abstract void release()

Releases the resources for this buffer. If the buffer has already been released, this method does nothing.

org.apache.hc.core5.reactor.ssl back to summary

pack-priv final Class SSLManagedBuffer.DynamicBuffer

extends SSLManagedBuffer
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final int
private ByteBuffer

Constructor Summary

AccessConstructor and Description
public
DynamicBuffer(final int size)

Method Summary

Modifier and TypeMethod and Description
public ByteBuffer
acquire()

Implements abstract org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.acquire.

Allocates the resources required for this buffer, or returns the resources already allocated for this buffer.
public boolean
hasData()

Implements abstract org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.hasData.

Tests to make sure that the buffer has been acquired and the underlying buffer has a position larger than 0.
public boolean
isAcquired()

Implements abstract org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.isAcquired.

Tests to see if this buffer has been acquired.
public void
release()

Implements abstract org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.release.

Releases the resources for this buffer.
Inherited from org.apache.hc.core5.reactor.ssl.SSLManagedBuffer:
create

Field Detail

lengthback to summary
private final int length
wrappedback to summary
private ByteBuffer wrapped

Constructor Detail

DynamicBufferback to summary
public DynamicBuffer(final int size)

Method Detail

acquireback to summary
public ByteBuffer acquire()

Implements abstract org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.acquire.

Doc from org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.acquire.

Allocates the resources required for this buffer, or returns the resources already allocated for this buffer. Unless release() is called, multiple invocations to this method must return the same java.nio.ByteBuffer.

Returns:ByteBuffer

buffer

Annotations
@Override
hasDataback to summary
public boolean hasData()

Implements abstract org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.hasData.

Doc from org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.hasData.

Tests to make sure that the buffer has been acquired and the underlying buffer has a position larger than 0. Essentially the same as isAquired() && acquire().position > 0.

Returns:boolean

true if the buffer has been acquired and the underlying buffer's position is > 0, otherwise false

Annotations
@Override
isAcquiredback to summary
public boolean isAcquired()

Implements abstract org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.isAcquired.

Doc from org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.isAcquired.

Tests to see if this buffer has been acquired.

Returns:boolean

true if the buffer is acquired, otherwise false

Annotations
@Override
releaseback to summary
public void release()

Implements abstract org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.release.

Doc from org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.release.

Releases the resources for this buffer. If the buffer has already been released, this method does nothing.

Annotations
@Override
org.apache.hc.core5.reactor.ssl back to summary

pack-priv final Class SSLManagedBuffer.StaticBuffer

extends SSLManagedBuffer
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final ByteBuffer

Constructor Summary

AccessConstructor and Description
public
StaticBuffer(final int size)

Method Summary

Modifier and TypeMethod and Description
public ByteBuffer
acquire()

Implements abstract org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.acquire.

Allocates the resources required for this buffer, or returns the resources already allocated for this buffer.
public boolean
hasData()

Implements abstract org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.hasData.

Tests to make sure that the buffer has been acquired and the underlying buffer has a position larger than 0.
public boolean
isAcquired()

Implements abstract org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.isAcquired.

Tests to see if this buffer has been acquired.
public void
release()

Implements abstract org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.release.

Releases the resources for this buffer.
Inherited from org.apache.hc.core5.reactor.ssl.SSLManagedBuffer:
create

Field Detail

bufferback to summary
private final ByteBuffer buffer

Constructor Detail

StaticBufferback to summary
public StaticBuffer(final int size)

Method Detail

acquireback to summary
public ByteBuffer acquire()

Implements abstract org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.acquire.

Doc from org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.acquire.

Allocates the resources required for this buffer, or returns the resources already allocated for this buffer. Unless release() is called, multiple invocations to this method must return the same java.nio.ByteBuffer.

Returns:ByteBuffer

buffer

Annotations
@Override
hasDataback to summary
public boolean hasData()

Implements abstract org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.hasData.

Doc from org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.hasData.

Tests to make sure that the buffer has been acquired and the underlying buffer has a position larger than 0. Essentially the same as isAquired() && acquire().position > 0.

Returns:boolean

true if the buffer has been acquired and the underlying buffer's position is > 0, otherwise false

Annotations
@Override
isAcquiredback to summary
public boolean isAcquired()

Implements abstract org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.isAcquired.

Doc from org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.isAcquired.

Tests to see if this buffer has been acquired.

Returns:boolean

true if the buffer is acquired, otherwise false

Annotations
@Override
releaseback to summary
public void release()

Implements abstract org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.release.

Doc from org.apache.hc.core5.reactor.ssl.SSLManagedBuffer.release.

Releases the resources for this buffer. If the buffer has already been released, this method does nothing.

Annotations
@Override