public enum ResponseMode extends Enum<ResponseMode>
SYNCHRONOUS
}),
not waiting for any responses at all (ASYNCHRONOUS
} or
ASYNCHRONOUS_WITH_SYNC_MARSHALLING
}), or waiting for first valid response
(WAIT_FOR_VALID_RESPONSE
})Enum Constant and Description |
---|
ASYNCHRONOUS |
ASYNCHRONOUS_WITH_SYNC_MARSHALLING |
SYNCHRONOUS |
SYNCHRONOUS_IGNORE_LEAVERS |
WAIT_FOR_VALID_RESPONSE |
Modifier and Type | Method and Description |
---|---|
static ResponseMode |
getAsyncResponseMode(Configuration c) |
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 ASYNCHRONOUS_WITH_SYNC_MARSHALLING
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()
public static ResponseMode getAsyncResponseMode(Configuration c)
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.