public static enum SessionFailRetryLoop.Mode extends java.lang.Enum<SessionFailRetryLoop.Mode>
| Enum Constant | Description |
|---|---|
FAIL |
If the session fails, throw
KeeperException.SessionExpiredException when
SessionFailRetryLoop.shouldContinue() is called |
RETRY |
If the session fails, retry the entire set of operations when
SessionFailRetryLoop.shouldContinue()
is called |
| Modifier and Type | Method | Description |
|---|---|---|
static SessionFailRetryLoop.Mode |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static SessionFailRetryLoop.Mode[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SessionFailRetryLoop.Mode RETRY
SessionFailRetryLoop.shouldContinue()
is calledpublic static final SessionFailRetryLoop.Mode FAIL
KeeperException.SessionExpiredException when
SessionFailRetryLoop.shouldContinue() is calledpublic static SessionFailRetryLoop.Mode[] values()
for (SessionFailRetryLoop.Mode c : SessionFailRetryLoop.Mode.values()) System.out.println(c);
public static SessionFailRetryLoop.Mode 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.