Advertisement
Guest User

ClientImpl.java

a guest
Nov 11th, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.59 KB | None | 0 0
  1. package com.rmicallback.client;
  2.  
  3. import java.rmi.RemoteException;
  4. import java.rmi.server.UnicastRemoteObject;
  5.  
  6. public class ClientImpl extends UnicastRemoteObject implements ClientInterface {
  7.    
  8.     private int n = 0;
  9.  
  10.     public ClientImpl() throws RemoteException{
  11.         super();
  12.     }
  13.    
  14.     @Override
  15.     public void notifyMe() throws RemoteException {
  16.         System.out.println("NOTIFICATION!");
  17.     }
  18.    
  19.     public void setN(int n) throws RemoteException {
  20.         this.n = n;
  21.     }
  22.    
  23.     public int getN() throws RemoteException {
  24.         return n;
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement