public enum MigrationEndpoint extends Enum<MigrationEndpoint>
Enum Constant and Description |
---|
DESTINATION
Denotes new owner of a partition replica
|
SOURCE
Denotes old owner of a partition replica
|
Modifier and Type | Method and Description |
---|---|
static MigrationEndpoint |
readFrom(DataInput in) |
static MigrationEndpoint |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MigrationEndpoint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static void |
writeTo(MigrationEndpoint endpoint,
DataOutput out) |
public static final MigrationEndpoint SOURCE
public static final MigrationEndpoint DESTINATION
public static MigrationEndpoint[] values()
for (MigrationEndpoint c : MigrationEndpoint.values()) System.out.println(c);
public static MigrationEndpoint 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 nullpublic static void writeTo(MigrationEndpoint endpoint, DataOutput out) throws IOException
IOException
public static MigrationEndpoint readFrom(DataInput in) throws IOException
IOException
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.