public class Service extends Object
Modifier and Type | Method and Description |
---|---|
void |
after(String command,
Function func)
Registers a callback after some command executed.
|
void |
command(String command,
Array args,
Map opts,
int timeout)
Post a command to the service
|
void |
destroy()
Destroy this binder.
|
void |
unAfter(String command,
Function func)
Unregisters a callback after some command executed.
|
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy
public void after(String command, Function func)
command
- the name of the commandfunc
- the function to executepublic void unAfter(String command, Function func)
command
- the name of the commandfunc
- the function to executepublic void destroy()
public void command(String command, Array args, Map opts, int timeout)
command
- the name of the commandargs
- the arguments for this command. (the value should be json type)opts
- a map of options to zk.Event, if any.timeout
- the time (milliseconds) to wait before sending the request.Copyright © 2005-2023 Potix Corporation. All Rights Reserved.