Interface ClientCtrl

  • All Known Implementing Classes:
    EmulatorClient

    public interface ClientCtrl
    Client controller interface. To provide more control of the client for developers.
    Author:
    pao
    • Method Detail

      • postUpdate

        void postUpdate​(String desktopId,
                        String targetUUID,
                        String command,
                        Map<String,​Object> data,
                        boolean ignorable)
        post an asynchronous update event. It will be queued until invoke flush.
      • postPiggyback

        void postPiggyback​(String desktopId,
                           String targetUUID,
                           String command,
                           Map<String,​Object> data,
                           boolean ignorable)
        post a piggyback asynchronous update event. a piggyback event's order is after normal events. It will be queued until invoke flush.
        Parameters:
        true - indicated that it's
      • flush

        void flush​(String desktopId)
        flush the queued AU update event including piggyback events.
      • getConnection

        HttpURLConnection getConnection​(String path,
                                        String method)
        get a connection with current session and cookie.
        Parameters:
        path - connect to this path
        method - HTTP method