Class InstanceCleanup
java.lang.Object
org.apache.curator.x.discovery.server.rest.InstanceCleanup
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
InstanceCleanup
- Parameters:
discovery
- the service being monitoredinstanceRefreshMs
- time in milliseconds to consider a registration stale
-
-
Method Details
-
start
public void start()Start the task -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-