public abstract class ClientFactory
extends java.lang.Object
Client interface| Constructor and Description |
|---|
ClientFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Client |
createClient()
Create a
Client with no connections. |
static Client |
createClient(ClientConfig config)
Recommended method for creating a client.
|
static void |
decreaseClientNum() |
static void |
increaseClientCountToOne() |
public static Client createClient()
Create a Client with no connections. The Client will be optimized to send stored procedure invocations
that are 128 bytes in size. Authentication will use a blank username and password unless
you use the @deprecated createConnection methods.
Clientpublic static Client createClient(ClientConfig config)
Recommended method for creating a client. Using a ClientConfig object ensures that a client application is isolated from changes to the configuration options. Authentication credentials are provided at construction time with this method instead of when invoking createConnection.
config - A ClientConfig object specifying what type of client to createpublic static void decreaseClientNum()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic static void increaseClientCountToOne()