public interface ServiceCache<T> extends Closeable, Listenable<ServiceCacheListener>, InstanceProvider<T>
Modifier and Type | Method and Description |
---|---|
List<ServiceInstance<T>> |
getInstances()
Return the current list of instances.
|
void |
start()
The cache must be started before use
|
CountDownLatch |
startImmediate() |
addListener, addListener, removeListener
List<ServiceInstance<T>> getInstances()
getInstances
in interface InstanceProvider<T>
CountDownLatch startImmediate() throws Exception
Exception
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.