java.lang.Object
org.lmdbjava.ByteBufferProxy
ByteBuffer-based proxy.
There are two concrete ByteBuffer proxy implementations available:
- A "fast" implementation:
ByteBufferProxy.UnsafeProxy - A "safe" implementation:
ByteBufferProxy.ReflectiveProxy
Users nominate which implementation they prefer by referencing the
PROXY_OPTIMAL or PROXY_SAFE field when invoking
Env.create(org.lmdbjava.BufferProxy).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classProvidesByteBufferpooling and address resolution for concreteBufferProxyimplementations.static final classThe buffer must be a direct buffer (not heap allocated). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BufferProxy<ByteBuffer>The fastestByteBufferproxy that is available on this platform.static final BufferProxy<ByteBuffer>The safe, reflectiveByteBufferproxy for this system. -
Method Summary
-
Field Details
-
PROXY_OPTIMAL
The fastestByteBufferproxy that is available on this platform. This will always be the same instance asPROXY_SAFEif theUnsafeAccess.DISABLE_UNSAFE_PROPhas been set totrueand/orUnsafeAccessis unavailable. Guaranteed to never be null. -
PROXY_SAFE
The safe, reflectiveByteBufferproxy for this system. Guaranteed to never be null.
-