public enum ResponseMode extends Enum<ResponseMode>
SYNCHRONOUS
}),
not waiting for any responses at all (ASYNCHRONOUS
}),
or waiting for first valid response (WAIT_FOR_VALID_RESPONSE
})Enum Constant and Description |
---|
ASYNCHRONOUS |
SYNCHRONOUS |
SYNCHRONOUS_IGNORE_LEAVERS
Most commands should use this mode to prevent SuspectExceptions when we are doing a broadcast
(or anycast that translates to JGroups broadcast).
|
WAIT_FOR_VALID_RESPONSE |
Modifier and Type | Method and Description |
---|---|
boolean |
isAsynchronous() |
boolean |
isSynchronous() |
static ResponseMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResponseMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseMode SYNCHRONOUS
public static final ResponseMode SYNCHRONOUS_IGNORE_LEAVERS
public static final ResponseMode ASYNCHRONOUS
public static final ResponseMode WAIT_FOR_VALID_RESPONSE
public static ResponseMode[] values()
for (ResponseMode c : ResponseMode.values()) System.out.println(c);
public static ResponseMode 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 nullpublic boolean isSynchronous()
public boolean isAsynchronous()
Copyright © 2021 JBoss by Red Hat. All rights reserved.