public enum GlobalMemoryAccessorType extends Enum<GlobalMemoryAccessorType>
GlobalMemoryAccessor
implementations.Enum Constant and Description |
---|
ALIGNMENT_AWARE
Represents the aligned
GlobalMemoryAccessor , 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). |
PLATFORM_AWARE
Represents a
GlobalMemoryAccessor which is either ALIGNMENT_AWARE or STANDARD ,
as appropriate to the underlying platform's architecture. |
STANDARD
Represents the standard
GlobalMemoryAccessor which correctly handles only aligned memory access. |
Modifier and Type | Method and Description |
---|---|
static GlobalMemoryAccessorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GlobalMemoryAccessorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GlobalMemoryAccessorType STANDARD
GlobalMemoryAccessor
which correctly handles only aligned memory access.
Requesting unaligned memory access from this instance will result in low-level JVM crash on
platforms which only support aligned access.StandardMemoryAccessor
public static final GlobalMemoryAccessorType ALIGNMENT_AWARE
GlobalMemoryAccessor
, 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).AlignmentAwareMemoryAccessor
public static final GlobalMemoryAccessorType PLATFORM_AWARE
GlobalMemoryAccessor
which is either ALIGNMENT_AWARE
or STANDARD
,
as appropriate to the underlying platform's architecture.
If the underlying platform supports unaligned memory access, it will match the standard
GlobalMemoryAccessor
because there's no need for aligmnent checks.
Otherwise it will match the alignment-aware GlobalMemoryAccessor
.
public static GlobalMemoryAccessorType[] values()
for (GlobalMemoryAccessorType c : GlobalMemoryAccessorType.values()) System.out.println(c);
public static GlobalMemoryAccessorType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2019 Hazelcast, Inc.. All Rights Reserved.