public final class ByteBufferProxy
extends java.lang.Object
ByteBuffer
-based proxy.
There are two concrete ByteBuffer
proxy implementations available:
UnsafeProxy
ReflectiveProxy
Users nominate which implementation they prefer by referencing the
PROXY_OPTIMAL
or PROXY_SAFE
field when invoking
Env.create(org.lmdbjava.BufferProxy)
.
Modifier and Type | Class and Description |
---|---|
static class |
ByteBufferProxy.BufferMustBeDirectException
The buffer must be a direct buffer (not heap allocated).
|
Modifier and Type | Field and Description |
---|---|
static BufferProxy<java.nio.ByteBuffer> |
PROXY_OPTIMAL
The fastest
ByteBuffer proxy that is available on this platform. |
static BufferProxy<java.nio.ByteBuffer> |
PROXY_SAFE
The safe, reflective
ByteBuffer proxy for this system. |
public static final BufferProxy<java.nio.ByteBuffer> PROXY_OPTIMAL
ByteBuffer
proxy that is available on this platform.
This will always be the same instance as PROXY_SAFE
if the
UnsafeAccess.DISABLE_UNSAFE_PROP
has been set to true
and/or UnsafeAccess
is unavailable. Guaranteed to never be null.public static final BufferProxy<java.nio.ByteBuffer> PROXY_SAFE
ByteBuffer
proxy for this system. Guaranteed
to never be null.Copyright © 2016–2018 The LmdbJava Open Source Project. All rights reserved.