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 java.lang.Object implements CacheRevalidatorBase.ScheduledExecutor
-
-
Field Summary
Fields Modifier and Type Field Description private CacheRevalidatorBase.ScheduledExecutor
executor
-
Constructor Summary
Constructors Constructor Description InternalScheduledExecutor(CacheRevalidatorBase.ScheduledExecutor executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
awaitTermination(org.apache.hc.core5.util.Timeout timeout)
java.util.concurrent.Future<?>
schedule(java.lang.Runnable command, org.apache.hc.core5.util.TimeValue timeValue)
void
shutdown()
-
-
-
Field Detail
-
executor
private final CacheRevalidatorBase.ScheduledExecutor executor
-
-
Constructor Detail
-
InternalScheduledExecutor
InternalScheduledExecutor(CacheRevalidatorBase.ScheduledExecutor executor)
-
-
Method Detail
-
schedule
public java.util.concurrent.Future<?> schedule(java.lang.Runnable command, org.apache.hc.core5.util.TimeValue timeValue) throws java.util.concurrent.RejectedExecutionException
- Specified by:
schedule
in interfaceCacheRevalidatorBase.ScheduledExecutor
- Throws:
java.util.concurrent.RejectedExecutionException
-
shutdown
public void shutdown()
- Specified by:
shutdown
in interfaceCacheRevalidatorBase.ScheduledExecutor
-
awaitTermination
public void awaitTermination(org.apache.hc.core5.util.Timeout timeout) throws java.lang.InterruptedException
- Specified by:
awaitTermination
in interfaceCacheRevalidatorBase.ScheduledExecutor
- Throws:
java.lang.InterruptedException
-
-