public enum ConnectionModel extends Enum<ConnectionModel>
|Enum Constant and Description|
Each sender thread writes the message to the socket connection directly.
Each socket uses a pair of threads: sender and receiver.
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final ConnectionModel RECEIVER_THREAD
This is the default
In a multi-threaded application this
perform as well as if not better than the
model. This is achieved by completely avoiding cross thread passing of
the message on a send.
public static final ConnectionModel SENDER_RECEIVER_THREAD
This was the default
ConnectionModel versions prior to 1.3.0.
ConnectionModel is most useful for connections where a
write() to the socket implementation is slow and the
application only uses a single write thread.
public static ConnectionModel values()
for (ConnectionModel c : ConnectionModel.values()) System.out.println(c);
public static ConnectionModel valueOf(String name)
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.