org.apache.activemq.kaha.impl.data
Class SyncDataFileWriter
java.lang.Object
org.apache.activemq.kaha.impl.data.SyncDataFileWriter
public final class SyncDataFileWriter
- extends Object
Optimized Store writer. Synchronously marshalls and writes to the data file.
Simple but may introduce a bit of contention when put under load.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
storeItem
public DataItem storeItem(Marshaller marshaller,
Object payload,
byte type)
throws IOException
- Throws:
IOException
updateItem
public void updateItem(DataItem item,
Marshaller marshaller,
Object payload,
byte type)
throws IOException
- Throws:
IOException
force
public void force(org.apache.activemq.kaha.impl.data.DataFile dataFile)
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Throws:
IOException
Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.