public class ClientParameters extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_HEARTBEAT_INTERVAL |
| Constructor and Description |
|---|
ClientParameters(String inUsername,
char[] inPassword,
String inURL,
String inHostname,
int inPort)
Creates an instance.
|
ClientParameters(String inUsername,
char[] inPassword,
String inURL,
String inHostname,
int inPort,
String inIDPrefix)
Creates an instance.
|
ClientParameters(String inUsername,
char[] inPassword,
String inURL,
String inHostname,
int inPort,
String inIDPrefix,
int inHeartbeatInterval)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getHeartbeatInterval()
The time interval between heartbeats, in ms.
|
String |
getHostname()
The server hostname.
|
String |
getIDPrefix()
The string to prefix to the orderIDs generated by this class.
|
char[] |
getPassword()
The password to use when connecting to the server.
|
int |
getPort()
The port number of the server.
|
String |
getURL()
The URL of the server.
|
String |
getUsername()
Gets the user name to use when connecting to the server.
|
int |
hashCode() |
String |
toString() |
public static final int DEFAULT_HEARTBEAT_INTERVAL
@ConstructorProperties(value={"username","password","URL","hostname","port","IDPrefix","heartbeatInterval"}) public ClientParameters(String inUsername, char[] inPassword, String inURL, String inHostname, int inPort, String inIDPrefix, int inHeartbeatInterval)
inUsername - the user name.inPassword - the password.inURL - the URL.inHostname - the host nameinPort - the port numberinIDPrefix - the string to prefix to the orderIDs generated
by the client based on the IDs from the server.inHeartbeatInterval - time interval between heartbeats, in ms.public ClientParameters(String inUsername, char[] inPassword, String inURL, String inHostname, int inPort, String inIDPrefix)
inUsername - the user name.inPassword - the password.inURL - the URL.inHostname - the host nameinPort - the port numberinIDPrefix - the string to prefix to the orderIDs generated
by the client based on the IDs from the server.public String getUsername()
public char[] getPassword()
public String getURL()
public int getPort()
public String getHostname()
public String getIDPrefix()
public int getHeartbeatInterval()
Copyright © 2015. All Rights Reserved.