public static enum LeaderLatch.CloseMode extends Enum<LeaderLatch.CloseMode>
Enum Constant and Description |
---|
NOTIFY_LEADER
When the latch is closed, listeners *will* be notified
|
SILENT
When the latch is closed, listeners will *not* be notified (default behavior)
|
Modifier and Type | Method and Description |
---|---|
static LeaderLatch.CloseMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LeaderLatch.CloseMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LeaderLatch.CloseMode SILENT
public static final LeaderLatch.CloseMode NOTIFY_LEADER
public static LeaderLatch.CloseMode[] values()
for (LeaderLatch.CloseMode c : LeaderLatch.CloseMode.values()) System.out.println(c);
public static LeaderLatch.CloseMode 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 © 2011–2023 The Apache Software Foundation. All rights reserved.