All Packages Class Hierarchy This Package Previous Next Index
Interface sunw.demo.quote.QuoteListener
- public interface QuoteListener
- extends Remote
This is the java.rmi.Remote interface that QuoteListeners must implement.
QuoteListeners monitor a single stock, QuoteEvents are delivered
whenever new data for that stock is available. The standard
event mechanism is used for QuoteEvents with one wrinkle:
QuoteListener implementations must extend UnicastRemoteObject.
- See Also:
- QuoteListenerImpl
-
getStockSymbol()
- Called by the QuoteServer before polling the quote source
to discover what stock we're monitoring.
-
quoteChanged(QuoteEvent)
- Called by the QuoteServer each time a new QuoteEvent is availble
for the stock symbol returned by getStockSymbol.
quoteChanged
public abstract void quoteChanged(QuoteEvent x) throws RemoteException
- Called by the QuoteServer each time a new QuoteEvent is availble
for the stock symbol returned by getStockSymbol.
- Parameters:
- x - timestamped quote data for one stock
- See Also:
- getStockSymbol
getStockSymbol
public abstract String getStockSymbol() throws RemoteException
- Called by the QuoteServer before polling the quote source
to discover what stock we're monitoring.
- Returns:
- the symbol for the stock we're interested in
All Packages Class Hierarchy This Package Previous Next Index