接口 ClientFactory<C extends Client>

    • 方法详细资料

      • 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 new Client.
        参数:
        clientId - client id
        attributes - client attributes
        返回:
        new Client implementation
      • newSyncedClient

        C newSyncedClient​(java.lang.String clientId,
                          ClientAttributes attributes)
        Build a new Client synced from other server node.
        参数:
        clientId - client id
        attributes - client attributes
        返回:
        new sync Client implementation