FileDocCategorySizeDatePackage
StockWatch.javaAPI DocExample3249Sat Sep 12 03:01:00 BST 1998examples.stock

StockWatch

public interface StockWatch implements Remote
The StockWatch remote interface is used to register interest in receiving stock updates.

Fields Summary
Constructors Summary
Methods Summary
public voidcancel(java.lang.String stock, StockNotify obj)
Cancel request for stock updates for a particular stock.

param
stock the stock name
param
obj the remote object canceling the notification
exception
RemoteException if some communication failure occurs

public voidcancelAll(StockNotify obj)
Cancel all requests for stock updates for the remote object.

param
obj the remote object canceling the request
exception
RemoteException if some communication failure occurs

public Stock[]list(StockNotify obj)
Returns an array of stock update information for the stocks already registered by the remote object.

param
obj the remote object
return
the list of stocks, or null if obj is not watching any stocks
exception
RemoteException if some communication failure occurs

public Stockwatch(java.lang.String stock, StockNotify obj)
Request notification of stock updates.

param
stock the stock name
param
obj the remote object to be notified
return
the latest update of the stock
exception
StockNotFoundException if stock is not known
exception
RemoteException if some communication failure occurs