Files
DistributedSystems/week3_TinsaeGhilay/Task 5/src/common/ServerInterface.java
2025-12-22 00:26:19 +01:00

24 lines
559 B
Java

package common;
/**
* ClientInterface interface
*
* @author Tinsae Ghilay
*
*/
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;
public interface ServerInterface extends Remote {
void registerClient(String clientId, ClientInterface client) throws RemoteException;
void sendMessage(String fromId, String toId, String message) throws RemoteException;
void blockClient(String clientId, String blockedId) throws RemoteException;
List<String> getOfflineMessages(String clientId) throws RemoteException;
}