Serviceablepublic final class ReclaimSpace extends java.lang.Object implements Serviceable
| Modifier and Type | Field | Description |
|---|---|---|
private int |
attempts |
|
static int |
COLUMN_CHAIN |
|
private int |
columnId |
|
private long |
columnPageId |
|
private int |
columnRecordId |
|
static int |
CONTAINER |
|
private ContainerKey |
containerId |
|
private RecordHandle |
headRowHandle |
|
static int |
PAGE |
|
private PageKey |
pageId |
|
private DataFactory |
processor |
|
private int |
reclaim |
|
static int |
ROW_RESERVE |
|
private boolean |
serviceASAP |
|
private PageTimeStamp |
timeStamp |
DONE, REQUEUE| Constructor | Description |
|---|---|
ReclaimSpace(int reclaim,
ContainerKey containerId,
DataFactory processor,
boolean serviceASAP) |
|
ReclaimSpace(int reclaim,
PageKey pageId,
DataFactory processor,
boolean serviceASAP) |
|
ReclaimSpace(int reclaim,
RecordHandle headRowHandle,
int columnId,
long ovPageId,
int ovRecordId,
PageTimeStamp timeStamp,
DataFactory processor,
boolean serviceASAP) |
|
ReclaimSpace(int reclaim,
RecordHandle headRowHandle,
DataFactory processor,
boolean serviceASAP) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getColumnId() |
|
long |
getColumnPageId() |
|
int |
getColumnRecordId() |
|
ContainerKey |
getContainerId() |
|
RecordHandle |
getHeadRowHandle() |
|
PageKey |
getPageId() |
|
PageTimeStamp |
getPageTimeStamp() |
|
int |
incrAttempts() |
|
private void |
initContainerInfo(ContainerKey containerId,
int reclaim,
DataFactory processor,
boolean serviceASAP) |
|
int |
performWork(ContextManager context) |
Do whatever it is that you want the daemon to do for you.
|
int |
reclaimWhat() |
|
boolean |
serviceASAP() |
If this work should be done as soon as possible, then return true.
|
boolean |
serviceImmediately() |
If this work should be done immediately on the user thread then return true.
|
java.lang.String |
toString() |
private boolean serviceASAP
private ContainerKey containerId
private PageKey pageId
private RecordHandle headRowHandle
private int columnId
private long columnPageId
private int columnRecordId
private PageTimeStamp timeStamp
private int attempts
private DataFactory processor
private int reclaim
public static final int CONTAINER
public static final int PAGE
public static final int ROW_RESERVE
public static final int COLUMN_CHAIN
public ReclaimSpace(int reclaim,
ContainerKey containerId,
DataFactory processor,
boolean serviceASAP)
public ReclaimSpace(int reclaim,
PageKey pageId,
DataFactory processor,
boolean serviceASAP)
public ReclaimSpace(int reclaim,
RecordHandle headRowHandle,
DataFactory processor,
boolean serviceASAP)
public ReclaimSpace(int reclaim,
RecordHandle headRowHandle,
int columnId,
long ovPageId,
int ovRecordId,
PageTimeStamp timeStamp,
DataFactory processor,
boolean serviceASAP)
private void initContainerInfo(ContainerKey containerId, int reclaim, DataFactory processor, boolean serviceASAP)
public boolean serviceASAP()
ServiceableMT - MT safe
serviceASAP in interface Serviceablepublic int performWork(ContextManager context) throws StandardException
ServiceableperformWork in interface Serviceablecontext - the contextManager set up by the DaemonService. There
may or may not be the necessary context on it, depending on which other
Serviceable object it has done work for.StandardException - Standard Derby exception policy
MT - depends on the work. Be wary of multiple DaemonService thread calling at the same time if you subscribe or enqueue multiple times.
public boolean serviceImmediately()
ServiceableserviceImmediately in interface Serviceablepublic final ContainerKey getContainerId()
public final PageKey getPageId()
public final RecordHandle getHeadRowHandle()
public final int getColumnId()
public final long getColumnPageId()
public final int getColumnRecordId()
public final PageTimeStamp getPageTimeStamp()
public final int reclaimWhat()
public final int incrAttempts()
public java.lang.String toString()
toString in class java.lang.ObjectApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.