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 Closeable
close
in interface AutoCloseable
IOException
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.