public abstract class ChosenBlock
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
canWriteClientCache |
ClientKey |
ckey
The client-layer key to be fetched, null if not a SendableGet
|
boolean |
forkOnCacheable |
boolean |
ignoreStore |
Key |
key
The key to be fetched, null if not a BaseSendableGet
|
boolean |
localRequestOnly |
boolean |
realTimeFlag |
SendableRequestItem |
token
The token indicating the key within the request to be fetched/inserted.
|
Constructor and Description |
---|
ChosenBlock(SendableRequestItem token,
Key key,
ClientKey ckey,
boolean localRequestOnly,
boolean ignoreStore,
boolean canWriteClientCache,
boolean forkOnCacheable,
boolean realTimeFlag,
RequestScheduler sched) |
Modifier and Type | Method and Description |
---|---|
abstract short |
getPriority() |
abstract SendableRequestSender |
getSender(ClientContext context) |
abstract boolean |
isCancelled() |
abstract boolean |
isPersistent() |
void |
onDumped() |
abstract void |
onFailure(LowLevelGetException e,
ClientContext context) |
abstract void |
onFailure(LowLevelPutException e,
ClientContext context) |
abstract void |
onFetchSuccess(ClientContext context)
The actual data delivery goes through CRS.tripPendingKey().
|
abstract void |
onInsertSuccess(ClientKey key,
ClientContext context) |
boolean |
send(NodeClientCore core,
RequestScheduler sched) |
boolean |
sendIsBlocking()
Call this after send()
|
public final transient SendableRequestItem token
public final transient Key key
public final transient ClientKey ckey
public final transient boolean localRequestOnly
public final transient boolean ignoreStore
public final transient boolean canWriteClientCache
public final transient boolean forkOnCacheable
public final transient boolean realTimeFlag
public ChosenBlock(SendableRequestItem token, Key key, ClientKey ckey, boolean localRequestOnly, boolean ignoreStore, boolean canWriteClientCache, boolean forkOnCacheable, boolean realTimeFlag, RequestScheduler sched)
public abstract boolean isPersistent()
public abstract boolean isCancelled()
public abstract void onFailure(LowLevelPutException e, ClientContext context)
public abstract void onInsertSuccess(ClientKey key, ClientContext context)
public abstract void onFailure(LowLevelGetException e, ClientContext context)
public abstract void onFetchSuccess(ClientContext context)
context
- Might be useful.public abstract short getPriority()
public boolean send(NodeClientCore core, RequestScheduler sched)
public abstract SendableRequestSender getSender(ClientContext context)
public void onDumped()
public boolean sendIsBlocking()