Class DefaultAsyncCacheRevalidator.InternalScheduledExecutor
java.lang.Object
org.apache.hc.client5.http.impl.cache.DefaultAsyncCacheRevalidator.InternalScheduledExecutor
- All Implemented Interfaces:
CacheRevalidatorBase.ScheduledExecutor
- Enclosing class:
DefaultAsyncCacheRevalidator
static class DefaultAsyncCacheRevalidator.InternalScheduledExecutor
extends Object
implements CacheRevalidatorBase.ScheduledExecutor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidawaitTermination(org.apache.hc.core5.util.Timeout timeout) Future<?> voidshutdown()
-
Field Details
-
executor
-
-
Constructor Details
-
InternalScheduledExecutor
InternalScheduledExecutor(CacheRevalidatorBase.ScheduledExecutor executor)
-
-
Method Details
-
schedule
public Future<?> schedule(Runnable command, org.apache.hc.core5.util.TimeValue timeValue) throws RejectedExecutionException - Specified by:
schedulein interfaceCacheRevalidatorBase.ScheduledExecutor- Throws:
RejectedExecutionException
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceCacheRevalidatorBase.ScheduledExecutor
-
awaitTermination
- Specified by:
awaitTerminationin interfaceCacheRevalidatorBase.ScheduledExecutor- Throws:
InterruptedException
-