public static enum Index.OperationSource extends Enum<Index.OperationSource>
Required for the index stats tracking to ignore index operations initiated internally by Hazelcast. We can't achieve the same behaviour on the pure stats level, e.g. by turning stats off during a partition migration, since global indexes and their stats are shared across partitions.
Enum Constant and Description |
---|
SYSTEM
Indicates that an index operation was initiated internally by
Hazelcast; for instance, as a result of a partition migration.
|
USER
Indicates that an index operation was initiated by a user; for
instance, as a result of a new map entry insertion.
|
Modifier and Type | Method and Description |
---|---|
static Index.OperationSource |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Index.OperationSource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Index.OperationSource USER
public static final Index.OperationSource SYSTEM
public static Index.OperationSource[] values()
for (Index.OperationSource c : Index.OperationSource.values()) System.out.println(c);
public static Index.OperationSource 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 © 2021 Hazelcast, Inc.. All Rights Reserved.