Class AbstractCommitLogService
java.lang.Object
org.apache.cassandra.db.commitlog.AbstractCommitLogService
- Direct Known Subclasses:
GroupCommitLogService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Semaphoreprotected longprotected final AtomicLongprotected final WaitQueue -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidBlock for @param alloc to be sync'd as necessary, and handle bookkeepinglonglongprotected abstract voidvoidshutdown()voidRequest sync and wait until the current state is synced.
-
Field Details
-
lastSyncedAt
protected volatile long lastSyncedAt -
pending
-
syncComplete
-
haveWork
-
-
Method Details
-
finishWriteFor
Block for @param alloc to be sync'd as necessary, and handle bookkeeping -
maybeWaitForSync
-
shutdown
public void shutdown() -
syncBlocking
public void syncBlocking()Request sync and wait until the current state is synced. Note: If a sync is in progress at the time of this request, the call will return after both it and a cycle initiated immediately afterwards complete. -
awaitTermination
- Throws:
InterruptedException
-
getCompletedTasks
public long getCompletedTasks() -
getPendingTasks
public long getPendingTasks()
-