Class TopologyApiClientFactory
java.lang.Object
io.clonecloudstore.common.quarkus.client.SimpleClientFactoryAbstract<TopologyApi>
io.clonecloudstore.administration.client.TopologyApiClientFactory
- All Implemented Interfaces:
Closeable
,AutoCloseable
@ApplicationScoped
public class TopologyApiClientFactory
extends SimpleClientFactoryAbstract<TopologyApi>
-
Field Summary
Fields inherited from class io.clonecloudstore.common.quarkus.client.SimpleClientFactoryAbstract
DEFAULT_VALUE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToCache
(Collection<Topology> topologies) void
protected Class
<?> Shall be overriddenIn general, implementation is simply: return new ClientImpl(this);For Factory with multiple targets, to ensure correctness of URIMethods inherited from class io.clonecloudstore.common.quarkus.client.SimpleClientFactoryAbstract
close, getService, getUri, getVertx, isTls, prepare, prepare
-
Constructor Details
-
TopologyApiClientFactory
public TopologyApiClientFactory(io.quarkus.cache.Cache cache)
-
-
Method Details
-
newClient
Description copied from class:SimpleClientFactoryAbstract
In general, implementation is simply: return new ClientImpl(this);- Specified by:
newClient
in classSimpleClientFactoryAbstract<TopologyApi>
- Returns:
- the new Client with this associated factory
-
newClient
Description copied from class:SimpleClientFactoryAbstract
For Factory with multiple targets, to ensure correctness of URI- Overrides:
newClient
in classSimpleClientFactoryAbstract<TopologyApi>
- Returns:
- the new Client with this associated factory for this URI
-
getServiceClass
Description copied from class:SimpleClientFactoryAbstract
Shall be overridden- Specified by:
getServiceClass
in classSimpleClientFactoryAbstract<TopologyApi>
- Returns:
- the class of API Interface
-
getFromCache
-
addToCache
-
clearCache
public void clearCache()
-