public enum Transports extends java.lang.Enum<Transports>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TEST_MOCK_TRANSPORT_THREAD_PREFIX
threads whose name is prefixed by this string will be considered network threads, even though they aren't
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
assertNotTransportThread(java.lang.String reason) |
static boolean |
assertTransportThread() |
static boolean |
isTransportThread(java.lang.Thread t)
Utility method to detect whether a thread is a network thread.
|
static Transports |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Transports[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final java.lang.String TEST_MOCK_TRANSPORT_THREAD_PREFIX
public static Transports[] values()
for (Transports c : Transports.values()) System.out.println(c);
public static Transports 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 nullpublic static final boolean isTransportThread(java.lang.Thread t)
public static boolean assertTransportThread()
public static boolean assertNotTransportThread(java.lang.String reason)