public class InstanceCleanup extends Object implements Closeable
| Constructor and Description |
|---|
InstanceCleanup(ServiceDiscovery<?> discovery,
int instanceRefreshMs) |
public InstanceCleanup(ServiceDiscovery<?> discovery, int instanceRefreshMs)
discovery - the service being monitoredinstanceRefreshMs - time in milliseconds to consider a registration stalepublic void start()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.