com.caucho.db.store
Class XAWriteBlock
java.lang.Object
com.caucho.db.store.Block
com.caucho.db.store.WriteBlock
com.caucho.db.store.XAWriteBlock
- All Implemented Interfaces:
- SyncCacheListener
public class XAWriteBlock
- extends WriteBlock
Represents a write (dirty) block.
|
Method Summary |
protected void |
freeImpl()
Called when the block is removed from the cache. |
byte[] |
getBuffer()
Returns the block's buffer. |
java.lang.String |
toString()
|
void |
writeImpl(int offset,
int length)
Write the dirty block. |
| Methods inherited from class com.caucho.db.store.Block |
allocate, commit, free, getBlockId, getLock, invalidate, isDirty, isFlushDirtyOnCommit, isFree, read, setDirty, setFlushDirtyOnCommit, syncRemoveEvent, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
XAWriteBlock
public XAWriteBlock(Block block)
throws java.io.IOException
- Throws:
java.io.IOException
getBuffer
public byte[] getBuffer()
- Returns the block's buffer.
- Specified by:
getBuffer in class Block
writeImpl
public void writeImpl(int offset,
int length)
throws java.io.IOException
- Description copied from class:
Block
- Write the dirty block.
- Overrides:
writeImpl in class Block
- Throws:
java.io.IOException
freeImpl
protected void freeImpl()
- Called when the block is removed from the cache.
- Overrides:
freeImpl in class Block
toString
public java.lang.String toString()
- Overrides:
toString in class WriteBlock