All pastes #249992 Raw Edit

Java

public java v1 · immutable
#249992 ·published 2006-11-16 14:27 UTC
rendered paste body
package marketplace;import java.rmi.Remote;import java.rmi.RemoteException;import java.util.List;public interface MarketPlace extends Remote {	public void register(Seller s) throws RemoteException;	public void register(Buyer b) throws RemoteException;		public void unregister(Seller s) throws RemoteException;	public void unregister(Buyer b) throws RemoteException;		public void sellItem(Seller s, Item i) throws RemoteException;		/* Also emit a signal on seller side */	public void buyItem(Buyer b, Item i) throws RemoteException;		/* Emit a signal on client side */	public void watch(Buyer b, String name, int maxpPrice) throws RemoteException;		public List<Item> getItems() throws RemoteException;}