public enum ConnectionMode extends Enum<ConnectionMode>
Enum Constant and Description |
---|
DEDICATED_THREADS
TCP connection is served by two threads one for sending and second one for receiving data from counterparty.
|
EXTERNAL_THREAD
TCP connection is served by an external thread.
|
THREAD_POOL
TCP connection is served by a shared thread pool.
|
Modifier and Type | Method and Description |
---|---|
static ConnectionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionMode DEDICATED_THREADS
public static final ConnectionMode THREAD_POOL
public static final ConnectionMode EXTERNAL_THREAD
public static ConnectionMode[] values()
for (ConnectionMode c : ConnectionMode.values()) System.out.println(c);
public static ConnectionMode 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 © 2005–2024 Onix Solutions. All rights reserved.