T - proxy type contained in this class.C - configuration for the switching proxy.public abstract class SwitchingProxy<T extends ClientProxy,C extends SwitchingProxyConfig> extends DynamicClientProxy<T,C>
| Modifier | Constructor and Description |
|---|---|
protected |
SwitchingProxy(C config,
DiscoverySubscriber<T,C> subscriber) |
| Modifier and Type | Method and Description |
|---|---|
protected DiscoveryResult |
getCurrentDiscoveryResult() |
protected java.lang.String |
getDiscoveryProperty(java.lang.String key) |
protected io.axual.common.concurrent.LockedObject.ReadLock |
getReadLock() |
protected ClientProxySwitcher<T,C> |
getSwitcher() |
protected boolean |
maybeReplaceProxiedObject(boolean force)
Replace the proxied object, depending on if a change in Discovery result has been indicated, or
if a replace is forced (or both).
|
protected boolean |
maybeReplaceProxiedObject(boolean force,
boolean isTransactional)
Replace the proxied object, depending on if a change in Discovery result has been indicated, or
if a replace is forced (or both).
|
close, close, getConfig, getConfigs, getWriteLockoperationNotSupported, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, getStringConfigprotected SwitchingProxy(C config, DiscoverySubscriber<T,C> subscriber)
protected ClientProxySwitcher<T,C> getSwitcher()
protected boolean maybeReplaceProxiedObject(boolean force)
DynamicClientProxymaybeReplaceProxiedObject in class DynamicClientProxy<T extends ClientProxy,C extends SwitchingProxyConfig>force - true if the replace should be done regardless of discovery change or not.true if a replace was done, else false.protected boolean maybeReplaceProxiedObject(boolean force,
boolean isTransactional)
DynamicClientProxymaybeReplaceProxiedObject in class DynamicClientProxy<T extends ClientProxy,C extends SwitchingProxyConfig>force - true if the replace should be done regardless of discovery change or not.isTransactional - indicates if the proxied object has transactions active.true if a replace was done, else false.protected io.axual.common.concurrent.LockedObject.ReadLock getReadLock()
getReadLock in class DynamicClientProxy<T extends ClientProxy,C extends SwitchingProxyConfig>protected DiscoveryResult getCurrentDiscoveryResult()
protected java.lang.String getDiscoveryProperty(java.lang.String key)
Copyright © 2020–2022 Axual B.V.. All rights reserved.