public static enum LeaderLatch.CloseMode extends java.lang.Enum<LeaderLatch.CloseMode>
| Enum Constant | 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 | Description |
|---|---|---|
static LeaderLatch.CloseMode |
valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.