|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectflashcache.QuoteLoader
public class QuoteLoader
This class implements a CacheLoader used by the Quote program to search for quotes in other caches and, failing that, to pull quotes from the NASDAQ FlashQuote web site.
When a CacheLoader is associated with a Region, GemFire will use it to load requested objects when there
is a cache-miss.
| Constructor Summary | |
|---|---|
QuoteLoader()
|
|
| Method Summary | |
|---|---|
void |
close()
This method would clean up any database connections or other external resources. |
Object |
load(LoaderHelper helper)
this method is invoked by GemFire when there is a cache miss |
(package private) String |
loadSnapshot(String symbol)
this method is invoked by the load() method when the requested quote isn't in the cache system and must be loaded from the NASDAQ web site |
static void |
main(String[] args)
This is a test driver - this loads a quote without looking in the GemFire cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QuoteLoader()
| Method Detail |
|---|
public Object load(LoaderHelper helper)
load in interface CacheLoaderString loadSnapshot(String symbol)
public void close()
close in interface CacheCallbackpublic static void main(String[] args)
The class Quote uses GemFire to cache quotes.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||