| Modifier and Type | Field and Description |
|---|---|
protected ArcacheBackendClient |
backendClient |
protected boolean |
cancelled |
protected ArcacheConfigurationGetInterface |
config |
protected boolean |
done |
protected boolean |
hardInvalidation |
protected long |
invalidationWindowSecs |
protected String |
key |
protected ar.com.siripo.arcache.BackendKeyBuilder |
keyBuilder |
protected Future<Object> |
prevVersionGetFuture |
protected Future<Boolean> |
setFuture |
protected Boolean |
valueToReturn |
| Modifier | Constructor and Description |
|---|---|
protected |
InvalidateKeyTask(String key,
boolean hardInvalidation,
long invalidationWindowSecs,
ArcacheBackendClient backendClient,
ar.com.siripo.arcache.BackendKeyBuilder keyBuilder,
ArcacheConfigurationGetInterface config) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
protected Boolean |
doTask(long startTimeMillis,
long timeoutMillis) |
Boolean |
get() |
Boolean |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
protected final String key
protected final boolean hardInvalidation
protected final long invalidationWindowSecs
protected final ArcacheBackendClient backendClient
protected final ar.com.siripo.arcache.BackendKeyBuilder keyBuilder
protected final ArcacheConfigurationGetInterface config
protected boolean cancelled
protected boolean done
protected Boolean valueToReturn
protected InvalidateKeyTask(String key, boolean hardInvalidation, long invalidationWindowSecs, ArcacheBackendClient backendClient, ar.com.siripo.arcache.BackendKeyBuilder keyBuilder, ArcacheConfigurationGetInterface config)
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<Boolean>public Boolean get() throws InterruptedException, ExecutionException
get in interface Future<Boolean>InterruptedExceptionExecutionExceptionpublic Boolean get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<Boolean>InterruptedExceptionExecutionExceptionTimeoutExceptionprotected Boolean doTask(long startTimeMillis, long timeoutMillis) throws InterruptedException, ExecutionException, TimeoutException
Copyright © 2019. All rights reserved.