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, terminate
public Object load(LoaderHelper helper) throws CacheLoaderException
CacheLoader
Region.get(Object, Object)
that triggered this load.
load
in interface CacheLoader
helper
- 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
.CacheLoaderException
Region.get
public static void loadEmergencyClasses()
SystemFailure.loadEmergencyClasses()
public void close()
BridgeWriter
BridgeWriter
is destroyed,
when the cache is closed, or when a callback is removed from a region using
an AttributesMutator
.
Closes connections to BridgeServers
when all
Regions
are finished using this BridgeWriter,close
in interface CacheCallback
close
in class BridgeWriter
BridgeWriter.attach(Region)
,
BridgeWriter.detach(Region)
public boolean isClosed()
BridgeClient
has been closed.isClosed
in class BridgeWriter
public 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 BridgeWriter
r
- 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 BridgeWriter
r
- the Region which will no longer use this BridgeWriterattach(Region)
,
close()
public void init(BridgeWriter bridgeWriter)
BridgeWriter
BridgeWriter
. This
method reuses the existing BridgeWriter
's proxy.init
in class BridgeWriter
bridgeWriter
- The existing BridgeWriter
public void init(Properties p)
BridgeWriter
Properties
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 Declarable
init
in class BridgeWriter
p
- configuration data such as 'endpoint' definitionspublic BridgeLoader getBridgeLoader()
public String toString()
toString
in class BridgeWriter
Copyright © 1997-2017 Pivotal Software, Inc. All rights reserved.