public class QuoteLoader extends Object implements com.gemstone.gemfire.cache.CacheLoader<String,Object>
When a CacheLoader is associated with a Region, GemFire will use it to load requested objects when there
is a cache-miss.
| Constructor and Description |
|---|
QuoteLoader() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This method would clean up any database connections or other
external resources.
|
Object |
load(com.gemstone.gemfire.cache.LoaderHelper<String,Object> helper)
this method is invoked by GemFire when there is a cache miss
|
static void |
main(String[] args)
This is a test driver - this loads a quote without looking in
the GemFire cache.
|
public Object load(com.gemstone.gemfire.cache.LoaderHelper<String,Object> helper)
public void close()
close in interface com.gemstone.gemfire.cache.CacheCallbackCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.