📄 callbackserverinterface.java
字号:
import java.rmi.*;/** * This is a remote interface for illustrating RMI * client callback. * @author M. L. Liu */public interface CallbackServerInterface extends Remote { public String sayHello( ) throws java.rmi.RemoteException;// This remote method allows an object client to // register for callback// @param callbackClientObject is a reference to the// object of the client; to be used by the server// to make its callbacks. public void registerForCallback( CallbackClientInterface callbackClientObject ) throws java.rmi.RemoteException;// This remote method allows an object client to // cancel its registration for callback public void unregisterForCallback( CallbackClientInterface callbackClientObject) throws java.rmi.RemoteException;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -