liurunyu
2023-11-20 aab5b6fc250e074c8cac9e5d244bab011b9d9a32
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
package com.dy.common.mw.channel.rmi;
 
import java.rmi.Remote;
import java.rmi.RemoteException;
 
public interface RmiFrameWork extends Remote {
 
    /**
     * 关闭服务的请求
     * @return 命令结果的ID,如果为空,则说明出错
     * @throws RemoteException 异常
     */
    String shutRequest() throws RemoteException;
 
    /**
     * 异步请求
     * @param command 命令
     * @return 命令结果的ID,如果为空,则说明出错
     * @throws RemoteException 异常
     */
    String asyncRequest(Object command) throws RemoteException;
 
    /**
     * 同步请求
     * @param command 命令
     * @return 命令结果,如果为空,则说明出错
     * @throws RemoteException 异常
     */
    Object syncRequest(Object command) throws RemoteException;
}