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 TypeMethodDescriptionvoid
awaitTermination
(org.apache.hc.core5.util.Timeout timeout) Future
<?> void
shutdown()
-
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:
schedule
in interfaceCacheRevalidatorBase.ScheduledExecutor
- Throws:
RejectedExecutionException
-
shutdown
public void shutdown()- Specified by:
shutdown
in interfaceCacheRevalidatorBase.ScheduledExecutor
-
awaitTermination
- Specified by:
awaitTermination
in interfaceCacheRevalidatorBase.ScheduledExecutor
- Throws:
InterruptedException
-