Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.rmicallback.client;
- import java.rmi.RemoteException;
- import java.rmi.server.UnicastRemoteObject;
- public class ClientImpl extends UnicastRemoteObject implements ClientInterface {
- private int n = 0;
- public ClientImpl() throws RemoteException{
- super();
- }
- @Override
- public void notifyMe() throws RemoteException {
- System.out.println("NOTIFICATION!");
- }
- public void setN(int n) throws RemoteException {
- this.n = n;
- }
- public int getN() throws RemoteException {
- return n;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement