Package | Description |
---|---|
com.hazelcast.internal.memory |
SPI that deals with memory operations.
|
com.hazelcast.internal.memory.impl |
Internal memory management API implementations
|
Modifier and Type | Interface and Description |
---|---|
interface |
ConcurrentHeapMemoryAccessor
Extends
HeapMemoryAccessor with concurrent operations. |
interface |
GlobalMemoryAccessor
Accessor of global memory, both in CPU's native address space and on the Java heap.
|
interface |
HeapMemoryAccessor
Accessor of Java heap memory.
|
Modifier and Type | Class and Description |
---|---|
class |
AlignmentAwareMemoryAccessor
Aligned
MemoryAccessor which checks for and handles unaligned memory access
by splitting a larger-size memory operation into several smaller-size ones
(which have finer-grained alignment requirements). |
class |
ByteArrayAccessStrategy
Implementation of
ByteAccessStrategy for Java byte arrays. |
class |
CustomByteAccessStrategy
A
ByteAccessStrategy that works with a MemoryAccessor . |
class |
StandardMemoryAccessor
Standard
MemoryAccessor implementations
that directly uses Unsafe for accessing to memory. |
Modifier and Type | Field and Description |
---|---|
static ByteAccessStrategy<byte[]> |
EndiannessUtil.BYTE_ARRAY_ACCESS
Accesses bytes in a Java byte array
|
static ByteAccessStrategy<MemoryAccessor> |
EndiannessUtil.CUSTOM_ACCESS |
static ByteAccessStrategy<Object> |
EndiannessUtil.NATIVE_ACCESS
Accesses bytes in CPU's native address space
|
Modifier and Type | Method and Description |
---|---|
static <R> char |
EndiannessUtil.readChar(ByteAccessStrategy<R> strategy,
R resource,
long offset,
boolean useBigEndian) |
static <R> char |
EndiannessUtil.readCharB(ByteAccessStrategy<R> strategy,
R resource,
long offset) |
static <R> char |
EndiannessUtil.readCharL(ByteAccessStrategy<R> strategy,
R resource,
long offset) |
static <R> double |
EndiannessUtil.readDouble(ByteAccessStrategy<R> strategy,
R resource,
long offset,
boolean useBigEndian) |
static <R> double |
EndiannessUtil.readDoubleB(ByteAccessStrategy<R> strategy,
R resource,
long offset) |
static <R> double |
EndiannessUtil.readDoubleL(ByteAccessStrategy<R> strategy,
R resource,
long offset) |
static <R> float |
EndiannessUtil.readFloat(ByteAccessStrategy<R> strategy,
R resource,
long offset,
boolean useBigEndian) |
static <R> float |
EndiannessUtil.readFloatB(ByteAccessStrategy<R> strategy,
R resource,
long offset) |
static <R> float |
EndiannessUtil.readFloatL(ByteAccessStrategy<R> strategy,
R resource,
long offset) |
static <R> int |
EndiannessUtil.readInt(ByteAccessStrategy<R> strategy,
R resource,
long offset,
boolean useBigEndian) |
static <R> int |
EndiannessUtil.readIntB(ByteAccessStrategy<R> strategy,
R resource,
long offset) |
static <R> int |
EndiannessUtil.readIntL(ByteAccessStrategy<R> strategy,
R resource,
long offset) |
static <R> long |
EndiannessUtil.readLong(ByteAccessStrategy<R> strategy,
R resource,
long offset,
boolean useBigEndian) |
static <R> long |
EndiannessUtil.readLongB(ByteAccessStrategy<R> strategy,
R resource,
long offset) |
static <R> long |
EndiannessUtil.readLongL(ByteAccessStrategy<R> strategy,
R resource,
long offset) |
static <R> short |
EndiannessUtil.readShort(ByteAccessStrategy<R> strategy,
R resource,
long offset,
boolean useBigEndian) |
static <R> short |
EndiannessUtil.readShortB(ByteAccessStrategy<R> strategy,
R resource,
long offset) |
static <R> short |
EndiannessUtil.readShortL(ByteAccessStrategy<R> strategy,
R resource,
long offset) |
static <R> void |
EndiannessUtil.writeChar(ByteAccessStrategy<R> strategy,
R resource,
long offset,
char v,
boolean useBigEndian) |
static <R> void |
EndiannessUtil.writeCharB(ByteAccessStrategy<R> strategy,
R resource,
long offset,
char v) |
static <R> void |
EndiannessUtil.writeCharL(ByteAccessStrategy<R> strategy,
R resource,
long offset,
char v) |
static <R> void |
EndiannessUtil.writeDouble(ByteAccessStrategy<R> strategy,
R resource,
long offset,
double v,
boolean useBigEndian) |
static <R> void |
EndiannessUtil.writeDoubleB(ByteAccessStrategy<R> memoryAccessStrategy,
R resource,
long offset,
double v) |
static <R> void |
EndiannessUtil.writeDoubleL(ByteAccessStrategy<R> memoryAccessStrategy,
R resource,
long offset,
double v) |
static <R> void |
EndiannessUtil.writeFloat(ByteAccessStrategy<R> strategy,
R resource,
long offset,
float v,
boolean useBigEndian) |
static <R> void |
EndiannessUtil.writeFloatB(ByteAccessStrategy<R> strategy,
R resource,
long offset,
float v) |
static <R> void |
EndiannessUtil.writeFloatL(ByteAccessStrategy<R> strategy,
R resource,
long offset,
float v) |
static <R> void |
EndiannessUtil.writeInt(ByteAccessStrategy<R> strategy,
R resource,
long offset,
int v,
boolean useBigEndian) |
static <R> void |
EndiannessUtil.writeIntB(ByteAccessStrategy<R> strategy,
R resource,
long offset,
int v) |
static <R> void |
EndiannessUtil.writeIntL(ByteAccessStrategy<R> strategy,
R resource,
long offset,
int v) |
static <R> void |
EndiannessUtil.writeLong(ByteAccessStrategy<R> strategy,
R resource,
long offset,
long v,
boolean useBigEndian) |
static <R> void |
EndiannessUtil.writeLongB(ByteAccessStrategy<R> strategy,
R resource,
long offset,
long v) |
static <R> void |
EndiannessUtil.writeLongL(ByteAccessStrategy<R> strategy,
R resource,
long offset,
long v) |
static <R> void |
EndiannessUtil.writeShort(ByteAccessStrategy<R> strategy,
R resource,
long offset,
short v,
boolean useBigEndian) |
static <R> void |
EndiannessUtil.writeShortB(ByteAccessStrategy<R> strategy,
R resource,
long offset,
short v) |
static <R> void |
EndiannessUtil.writeShortL(ByteAccessStrategy<R> strategy,
R resource,
long offset,
short v) |
static <R> int |
EndiannessUtil.writeUtf8Char(ByteAccessStrategy<R> strategy,
R resource,
long pos,
int c) |
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.