public abstract class DynamicClientProxy<T extends ClientProxy,C extends DynamicClientProxyConfig> extends BaseClientProxy<C>
| Constructor and Description |
|---|
DynamicClientProxy(C config,
ClientProxyReplacer<T,C> replacer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(java.time.Duration timeout) |
void |
close(long timeout,
java.util.concurrent.TimeUnit unit)
Deprecated.
|
java.lang.Object |
getConfig(java.lang.String key) |
java.util.Map<java.lang.String,java.lang.Object> |
getConfigs() |
protected io.axual.common.concurrent.LockedObject.ReadLock |
getReadLock() |
protected io.axual.common.concurrent.LockedObject.WriteLock |
getWriteLock() |
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).
|
operationNotSupported, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, getStringConfigpublic DynamicClientProxy(C config, ClientProxyReplacer<T,C> replacer)
public java.util.Map<java.lang.String,java.lang.Object> getConfigs()
getConfigs in interface ProxygetConfigs in class BaseProxy<C extends DynamicClientProxyConfig>public final java.lang.Object getConfig(java.lang.String key)
@Deprecated
public final void close(long timeout,
java.util.concurrent.TimeUnit unit)
timeout - the timeoutunit - the unitpublic void close(java.time.Duration timeout)
protected boolean maybeReplaceProxiedObject(boolean force)
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)
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()
protected io.axual.common.concurrent.LockedObject.WriteLock getWriteLock()
Copyright © 2020–2022 Axual B.V.. All rights reserved.