All Examples This Package
Interface examples.rmi.stock.StockWatch
- public interface StockWatch
- extends Remote
This class is used with the WebLogic RMI Stock examples package.
The StockWatch remote interface is used to register interest in
receiving stock updates.
The classes in this package have been adapted to work with
WebLogic RMI from WebLogic.
-
cancel(String, StockNotify)
- Cancels a request for stock updates for a particular stock.
-
cancelAll(StockNotify)
- Cancels all requests for stock updates for the remote object.
-
list(StockNotify)
- Returns an array of stock update information for the stocks
already registered by the remote object, or null if the object
is not watching any stocks.
-
watch(String, StockNotify)
- Requests notification of stock updates.
watch
public abstract Stock watch(String stock,
StockNotify obj) throws StockNotFoundException, RemoteException
- Requests notification of stock updates.
- Parameters:
- stock - Stock name
- obj - Remote object to be notified
- Returns:
- Latest update of the stock
- Throws: StockNotFoundException
- if stock is not known
- Throws: RemoteException
- if some communication failure occurs
cancel
public abstract void cancel(String stock,
StockNotify obj) throws RemoteException
- Cancels a request for stock updates for a particular stock.
- Parameters:
- stock - Stock name
- obj - Remote object canceling the notification
- Throws: RemoteException
- if some communication failure occurs
list
public abstract Stock[] list(StockNotify obj) throws RemoteException
- Returns an array of stock update information for the stocks
already registered by the remote object, or null if the object
is not watching any stocks.
- Parameters:
- obj - Remote object
- Returns:
- List of stocks, or null
- Throws: RemoteException
- if some communication failure occurs
cancelAll
public abstract void cancelAll(StockNotify obj) throws RemoteException
- Cancels all requests for stock updates for the remote object.
- Parameters:
- obj - Remote object canceling the request
- Throws: RemoteException
- if some communication failure occurs
All Examples This Package