Package org.zkoss.zats.mimic.impl
Interface ClientCtrl
- All Known Implementing Classes:
EmulatorClient
public interface ClientCtrl
Client controller interface.
To provide more control of the client for developers.
- Author:
- pao
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy(DesktopAgent desktopAgent) voidflush the queued AU update event including piggyback events.getConnection(String path, String method) get a connection with current session and cookie.openConnection(String path) open a connection with current session and cookie.voidpostPiggyback(String desktopId, String targetUUID, String command, Map<String, Object> data, boolean ignorable) post a piggyback asynchronous update event.voidpostUpdate(String desktopId, String targetUUID, String command, Map<String, Object> data, boolean ignorable) post an asynchronous update event.void
-
Method Details
-
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
flush the queued AU update event including piggyback events. -
destroy
-
setDestroyListener
-
openConnection
open a connection with current session and cookie.- Parameters:
path- connect to this path- Throws:
IOException
-
getConnection
get a connection with current session and cookie.- Parameters:
path- connect to this pathmethod- HTTP method
-