接口 ClientFactory<C extends Client>
-
public interface ClientFactory<C extends Client>Client factory.- 作者:
- xiweng.yy
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 java.lang.StringgetType()Get the type of client this factory can build.CnewClient(java.lang.String clientId, ClientAttributes attributes)Build a newClient.CnewSyncedClient(java.lang.String clientId, ClientAttributes attributes)Build a newClientsynced from other server node.
-
-
-
方法详细资料
-
getType
java.lang.String getType()
Get the type of client this factory can build.- 返回:
- client type
-
newClient
C newClient(java.lang.String clientId, ClientAttributes attributes)
Build a newClient.- 参数:
clientId- client idattributes- client attributes- 返回:
- new
Clientimplementation
-
newSyncedClient
C newSyncedClient(java.lang.String clientId, ClientAttributes attributes)
Build a newClientsynced from other server node.- 参数:
clientId- client idattributes- client attributes- 返回:
- new sync
Clientimplementation
-
-