public enum DiscoveryMode extends Enum<DiscoveryMode>
The DiscoveryMode
describes how the DiscoveryStrategy
is going
to behave on discovery requests. Depending on the current environment it will
either be setup to run in client or server mode.
Implementors of DiscoveryStrategy
s are free to change behavior as necessary.
One possible use case is to prevent to start a multicast service on clients when only
discovery is necessary.
Enum Constant and Description |
---|
Client
The current runtime environment is a Hazelcast client
|
Member
The current runtime environment is a Hazelcast member node
|
Modifier and Type | Method and Description |
---|---|
static DiscoveryMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DiscoveryMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DiscoveryMode Member
public static final DiscoveryMode Client
public static DiscoveryMode[] values()
for (DiscoveryMode c : DiscoveryMode.values()) System.out.println(c);
public static DiscoveryMode 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 © 2023 Hazelcast, Inc.. All rights reserved.