public final class ClientManager extends Object
| Modifier and Type | Method and Description |
|---|---|
static Client |
getInstance()
Returns the Client instance after it has been initialized via
init(ClientParameters) |
static void |
init(ClientParameters inParameter)
Initializes the connection to the server.
|
static boolean |
isInitialized()
Returns true if the client is initialized, false if it's not.
|
static void |
setClientFactory(ClientFactory inFactory)
Sets the
ClientFactory to use to create the Client. |
public static void init(ClientParameters inParameter) throws ConnectionException, ClientInitException
getInstance().inParameter - The parameters to connect the client. Cannot be null.ConnectionException - if there were errors connecting
to the server.ClientInitException - if the client is already initialized.public static void setClientFactory(ClientFactory inFactory) throws ClientInitException
ClientFactory to use to create the Client.inFactory - a ClientFactory valueClientInitException - if the client is already initialized.public static Client getInstance() throws ClientInitException
init(ClientParameters)ClientInitException - if the client is not initialized.public static boolean isInitialized()
Copyright © 2015. All Rights Reserved.