T - the type of proxy to replace.C - the config type for the proxy type.public interface ClientProxyReplacer<T extends ClientProxy,C extends BaseClientProxyConfig>
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Called if this instance will no longer be called to replace proxies.
|
boolean |
needToReplace()
Indicate if we need to do the replace.
|
T |
replace(T oldProxy,
C config)
Replace the old proxy with a configured new instance of the same proxy type.
|
boolean needToReplace()
T replace(T oldProxy, C config)
oldProxy - the old proxy to be replaced.config - the proxy configuration.void close()
Copyright © 2020–2022 Axual B.V.. All rights reserved.