public class ChosenBlockImpl extends ChosenBlock
Modifier and Type | Field and Description |
---|---|
boolean |
persistent |
SendableRequest |
request |
RequestScheduler |
sched |
canWriteClientCache, ckey, forkOnCacheable, ignoreStore, key, localRequestOnly, realTimeFlag, token
Constructor and Description |
---|
ChosenBlockImpl(SendableRequest req,
SendableRequestItem token,
Key key,
ClientKey ckey,
boolean localRequestOnly,
boolean ignoreStore,
boolean canWriteClientCache,
boolean forkOnCacheable,
boolean realTimeFlag,
RequestScheduler sched,
boolean persistent) |
Modifier and Type | Method and Description |
---|---|
short |
getPriority() |
SendableRequestSender |
getSender(ClientContext context) |
boolean |
isCancelled() |
boolean |
isPersistent() |
void |
onFailure(LowLevelGetException e,
ClientContext context) |
void |
onFailure(LowLevelPutException e,
ClientContext context) |
void |
onFetchSuccess(ClientContext context)
The actual data delivery goes through CRS.tripPendingKey().
|
void |
onInsertSuccess(ClientKey key,
ClientContext context) |
onDumped, send, sendIsBlocking
public final SendableRequest request
public final RequestScheduler sched
public final boolean persistent
public ChosenBlockImpl(SendableRequest req, SendableRequestItem token, Key key, ClientKey ckey, boolean localRequestOnly, boolean ignoreStore, boolean canWriteClientCache, boolean forkOnCacheable, boolean realTimeFlag, RequestScheduler sched, boolean persistent)
public boolean isCancelled()
isCancelled
in class ChosenBlock
public boolean isPersistent()
isPersistent
in class ChosenBlock
public void onFailure(LowLevelPutException e, ClientContext context)
onFailure
in class ChosenBlock
public void onInsertSuccess(ClientKey key, ClientContext context)
onInsertSuccess
in class ChosenBlock
public void onFailure(LowLevelGetException e, ClientContext context)
onFailure
in class ChosenBlock
public void onFetchSuccess(ClientContext context)
ChosenBlock
onFetchSuccess
in class ChosenBlock
context
- Might be useful.public short getPriority()
getPriority
in class ChosenBlock
public SendableRequestSender getSender(ClientContext context)
getSender
in class ChosenBlock