public enum RelayType extends Enum<RelayType>
| Enum Constant and Description |
|---|
ANDROID
Data exchange will take place over Google Cloud Messaging.
|
BUFFERED_OPENTCP
Same as
OPENTCP, but the server buffers messages and sends them in bulk. |
OPENTCP
Data exchange will happen over an open TCP connection
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSlow()
Returns whether this type is 'slow' or not.
|
boolean |
keepConnectionOpen()
Returns whether a peer connection should be kept open or not.
|
int |
maxRelayCount()
Returns the maximum allowed number of relays.
|
static RelayType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RelayType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RelayType OPENTCP
public static final RelayType ANDROID
public static RelayType[] values()
for (RelayType c : RelayType.values()) System.out.println(c);
public static RelayType 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 keepConnectionOpen()
public int maxRelayCount()
public boolean isSlow()
Copyright © 2015. All rights reserved.