📄 topicserver.java
字号:
/*
* Copyright 1999 by dreamBean Software,
* All rights reserved.
*/
package masteringrmi.chat.interfaces;
import java.io.IOException;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.Collection;
/**
* This is the remote interface for the chat server.
*
* @author Rickard 謆erg (rickard@dreambean.com)
* @version $Revision:$
*/
public interface TopicServer
extends Remote
{
// Public --------------------------------------------------------
public Collection getTopicInfos()
throws RemoteException;
public void addListener(ListenerInfo info, MessageListener callBack)
throws RemoteException;
public void removeListener(ListenerInfo info)
throws RemoteException;
public Topic subscribe(TopicInfo topic, ListenerInfo info)
throws RemoteException;
public void unsubscribe(TopicInfo topic, ListenerInfo info)
throws RemoteException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -