@ThreadSafe
public class ClientServiceFactory
extends java.lang.Object
ClientService
. ClientServiceFactory
creates a new
ClientService
for each create method call but reuses objects such as clients and
connections as much as possible on the basis of a give configuration. So, ClientServiceFactory
object should always be reused. Please see the javadoc of ClientService
for how to use this.Constructor and Description |
---|
ClientServiceFactory() |
ClientServiceFactory(ClientConfig config)
Deprecated.
This method will be removed in release 5.0.0.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Cleans up all the resources managed by the factory.
|
ClientService |
create(ClientConfig config)
Returns a
ClientService instance. |
ClientService |
getClientService()
Deprecated.
This method will be removed in release 5.0.0.
|
@Deprecated public ClientServiceFactory(ClientConfig config)
config
- a client config.public ClientServiceFactory()
@Deprecated public ClientService getClientService()
ClientService
instance.ClientService
instancepublic ClientService create(ClientConfig config)
ClientService
instance.config
- a client configClientService
instancepublic void close()
ClientService
s that it creates.