|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.db.store.Block
com.caucho.db.store.WriteBlock
com.caucho.db.store.AutoCommitWriteBlock
public class AutoCommitWriteBlock
Represents a write (dirty) block. The AutoCommitWriteBlock
| Field Summary |
|---|
| Fields inherited from class com.caucho.db.store.WriteBlock |
|---|
_block |
| Fields inherited from class com.caucho.db.store.Block |
|---|
_freeBuffers |
| Constructor Summary | |
|---|---|
AutoCommitWriteBlock(Block block)
|
|
| Method Summary | |
|---|---|
void |
commit()
Handle any database writes necessary at commit time. |
protected void |
freeImpl()
Closes the write block. |
byte[] |
getBuffer()
The buffer for the auto-commit is the same as the read buffer. |
void |
setDirty(int minDirty,
int maxDirty)
Marks the block's data as dirty |
void |
setFlushDirtyOnCommit(boolean flushOnCommit)
True if the block should be flushed on a commit. |
java.lang.String |
toString()
|
| Methods inherited from class com.caucho.db.store.Block |
|---|
allocate, free, getBlockId, getLock, invalidate, isDirty, isFlushDirtyOnCommit, isFree, read, syncRemoveEvent, write, writeImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AutoCommitWriteBlock(Block block)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public byte[] getBuffer()
getBuffer in class Block
public void setDirty(int minDirty,
int maxDirty)
Block
setDirty in class Blockpublic void setFlushDirtyOnCommit(boolean flushOnCommit)
Block
setFlushDirtyOnCommit in class Block
public void commit()
throws java.io.IOException
Block
commit in class Blockjava.io.IOExceptionprotected void freeImpl()
freeImpl in class Blockpublic java.lang.String toString()
toString in class WriteBlock
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||