public abstract class SendableInsert extends SendableRequest
parentGrabArray, persistent, realTimeFlag| Constructor and Description |
|---|
SendableInsert(boolean persistent,
boolean realTimeFlag) |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
canWriteClientCache() |
abstract boolean |
forkOnCacheable() |
ClientRequestScheduler |
getScheduler(ClientContext context) |
long |
getWakeupTime(ClientContext context,
long now)
Unless this is a RandomGrabArrayItem, this will return the wakeup time for the subtree
rooted at this node.
|
protected abstract void |
innerOnResume(ClientContext context) |
void |
internalError(java.lang.Throwable t,
RequestScheduler sched,
ClientContext context,
boolean persistent)
Requeue after an internal error
|
abstract boolean |
isEmpty() |
boolean |
isInsert()
Is this an insert? For purposes of determining which scheduler to use.
|
abstract boolean |
localRequestOnly() |
abstract void |
onEncode(SendableRequestItem token,
ClientKey key,
ClientContext context)
Encoded a key
|
abstract void |
onFailure(LowLevelPutException e,
SendableRequestItem keyNum,
ClientContext context)
Called when we don't!
|
void |
onResume(ClientContext context) |
abstract void |
onSuccess(SendableRequestItem keyNum,
ClientKey key,
ClientContext context)
Called when we successfully insert the data
|
chooseKey, clearWakeupTime, countAllKeys, countSendableKeys, getClient, getClientRequest, getParentGrabArray, getPriorityClass, getSchedulerGroup, getSender, hashCode, isCancelled, isSSK, knowsParentGrabArray, objectToString, persistent, realTimeFlag, reduceWakeupTime, setParentGrabArray, unregisterpublic abstract void onSuccess(SendableRequestItem keyNum, ClientKey key, ClientContext context)
public abstract void onFailure(LowLevelPutException e, SendableRequestItem keyNum, ClientContext context)
public void internalError(java.lang.Throwable t,
RequestScheduler sched,
ClientContext context,
boolean persistent)
SendableRequestinternalError in class SendableRequestpublic final boolean isInsert()
SendableRequestisInsert in class SendableRequestpublic ClientRequestScheduler getScheduler(ClientContext context)
getScheduler in class SendableRequestpublic abstract boolean canWriteClientCache()
public abstract boolean localRequestOnly()
public abstract boolean forkOnCacheable()
public abstract void onEncode(SendableRequestItem token, ClientKey key, ClientContext context)
public abstract boolean isEmpty()
public long getWakeupTime(ClientContext context, long now)
RequestSelectionTreeNodepublic final void onResume(ClientContext context) throws InsertException, ResumeFailedException
InsertExceptionResumeFailedExceptionprotected abstract void innerOnResume(ClientContext context) throws InsertException, ResumeFailedException
InsertExceptionResumeFailedException