public static enum SessionFailRetryLoop.Mode extends Enum<SessionFailRetryLoop.Mode>
Enum Constant and 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 and Description |
---|---|
static SessionFailRetryLoop.Mode |
valueOf(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(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.