public final class ClientManager extends Object
| Constructor and Description |
|---|
ClientManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addClientInitListener(ClientInitListener inClientInitListener)
Add the given client listener.
|
Client |
getClient()
Get the Client value.
|
static Client |
getInstance()
Returns the Client instance after it has been initialized via
init(ClientParameters) |
ClientParameters |
getParameters()
Get the parameters value.
|
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 |
removeClientInitListener(ClientInitListener inClientInitListener)
Remove the given client listener.
|
void |
setClient(Client inClient)
Sets the Client value.
|
static void |
setClientFactory(ClientFactory inFactory)
Sets the
ClientFactory to use to create the Client. |
void |
setParameters(ClientParameters inParameters)
Sets the parameters value.
|
void |
start()
Validates and starts the object.
|
@PostConstruct public void start()
public ClientParameters getParameters()
ClientParameters valuepublic void setParameters(ClientParameters inParameters)
inParameters - a ClientParameters valuepublic Client getClient()
Client valuepublic void setClient(Client inClient)
inClient - a Client valuepublic 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()
public static void addClientInitListener(ClientInitListener inClientInitListener)
inClientInitListener - a ClientInitListener valuepublic static void removeClientInitListener(ClientInitListener inClientInitListener)
inClientInitListener - a ClientInitListener valueCopyright © 2019. All rights reserved.