pools instead.@Deprecated public class BridgeClient extends BridgeWriter implements CacheLoader
When a BridgeClient is declared in cache.xml it can be installed as either a cache-loader or as a cache-writer and it will automatically be installed as both the loader and writer for that region. This allows a single instance to be declared in XML and used as both the cache-loader and cache-writer thus reducing the number of connections to the server.
For configuration details please see the BridgeWriter and
the BridgeLoader.
BridgeLoader,
BridgeWriter,
BridgeServer| Constructor and Description |
|---|
BridgeClient()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attach(Region r)
Deprecated.
Notify the BridgeClient that the given Region will begin delivering events to this BridgeClient.
|
void |
close()
Deprecated.
Called when a region using this
BridgeWriter is destroyed,
when the cache is closed, or when a callback is removed from a region using
an AttributesMutator. |
void |
detach(Region r)
Deprecated.
Notify the BridgeClient that the given region is no longer relevant.
|
BridgeLoader |
getBridgeLoader()
Deprecated.
Return the internally maintained BridgeLoader
|
void |
init(BridgeWriter bridgeWriter)
Deprecated.
Initializes this writer from an existing
BridgeWriter. |
void |
init(Properties p)
Deprecated.
Initializes the writer with supplied config parameters.
|
boolean |
isClosed()
Deprecated.
Returns true if this
BridgeClient has been closed. |
Object |
load(LoaderHelper helper)
Deprecated.
Loads a value.
|
static void |
loadEmergencyClasses()
Deprecated.
Ensure that the BridgeLoader class gets loaded.
|
String |
toString()
Deprecated.
Returns a string description of the BridgeClient
|
addEndpoint, beforeCreate, beforeDestroy, beforeRegionClear, beforeRegionDestroy, beforeUpdate, getAttachCount, getConnectionProxy, getLBPolicy, getProperties, getReadTimeout, getRetryAttempts, getRetryInterval, hasEstablishCallbackConnection, release, removeEndpoint, terminatepublic Object load(LoaderHelper helper) throws CacheLoaderException
CacheLoaderRegion.get(Object, Object) that triggered this load.
load in interface CacheLoaderhelper - a LoaderHelper object that is passed in from cache service
and provides access to the key, region, argument, and netSearch.null causes
Region.get(Object, Object) to return null.CacheLoaderExceptionRegion.getpublic static void loadEmergencyClasses()
SystemFailure.loadEmergencyClasses()public void close()
BridgeWriterBridgeWriter is destroyed,
when the cache is closed, or when a callback is removed from a region using
an AttributesMutator.
Closes connections to BridgeServerswhen all
Regionsare finished using this BridgeWriter,close in interface CacheCallbackclose in class BridgeWriterBridgeWriter.attach(Region),
BridgeWriter.detach(Region)public boolean isClosed()
BridgeClient has been closed.isClosed in class BridgeWriterpublic void attach(Region r)
close() and allows a single instance of BridgeClient
to be safely shared with multiple Regions.
This is called internally when the BridgeClient is added to a Region
via AttributesFactory.setCacheWriter(CacheWriter)}attach in class BridgeWriterr - the Region which will begin use this BridgeWriter.detach(Region),
close()public void detach(Region r)
destruction and closure.
This method effects the behavor of close() and allows a single instance of BridgeClient
to be safely shared with multiple Regions.detach in class BridgeWriterr - the Region which will no longer use this BridgeWriterattach(Region),
close()public void init(BridgeWriter bridgeWriter)
BridgeWriterBridgeWriter. This
method reuses the existing BridgeWriter's proxy.init in class BridgeWriterbridgeWriter - The existing BridgeWriterpublic void init(Properties p)
BridgeWriterProperties object that at a minimum contains the 'endpoints'
parameter before the writer can be used. If init fails with a
LicenseException, the resulting BridgeWriter will throw
IllegalStateException until it is properly initialized.init in interface Declarableinit in class BridgeWriterp - configuration data such as 'endpoint' definitionspublic BridgeLoader getBridgeLoader()
public String toString()
toString in class BridgeWriterCopyright © 1997-2017 Pivotal Software, Inc. All rights reserved.