-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathIPC.java
More file actions
32 lines (23 loc) · 974 Bytes
/
Copy pathIPC.java
File metadata and controls
32 lines (23 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package javaforce.ipc;
/** IPC interface
*
* @author pquiring
*/
public interface IPC {
/** Connect to IPC service. */
public boolean connect();
/** Disconnect from IPC service. */
public boolean disconnect();
/** Return name on message bus. */
public String getBusName();
/** Invoke RPC on specified end point. */
public Object invoke(String dest, String path, String iface, String method, Object... args) throws Exception;
/** Invoke RPC on specified end point (path and interface are derived from dest). */
public Object invoke(String dest, String method, Object... args) throws Exception;
/** Subscribe to a signal from another client. */
public boolean subscribe(String rule);
/** Unsubscribe to a signal from another client. */
public boolean unsubscribe(String rule);
/** Invoke RPC to all end points that have subscribed to the method. */
public boolean signal(String path, String iface, String method, Object... args);
}