|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.tencent.tcaplus.client.ClientFactory
public abstract class ClientFactory
Tcaplus ClientFactory.
| Constructor Summary | |
|---|---|
ClientFactory()
|
|
| Method Summary | |
|---|---|
static Client |
createClient(int appId,
int zoneId,
java.lang.String signature,
java.util.List<java.lang.String> addresses)
Create a tcaplus client |
static void |
destroyClient(Client client)
Destroy the tcaplus client when you quit. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClientFactory()
| Method Detail |
|---|
public static Client createClient(int appId,
int zoneId,
java.lang.String signature,
java.util.List<java.lang.String> addresses)
throws com.tencent.tcaplus.util.TCaplusException
int - appId: the application id you get after you have registered a
tcaplus service.int - zoneId: the zone id you distribute your applicationString - signature: you will get a string signature after you have
registered a tcaplus service.List - com.tencent.tcaplus.util.TCaplusException
java.lang.IllegalStateException
public static void destroyClient(Client client)
throws com.tencent.tcaplus.util.TCaplusException
com.tencent.tcaplus.util.TCaplusException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||