org.apache.activemq.kaha.impl.data
Class SyncDataFileWriter

java.lang.Object
  extended by 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.


Method Summary
 void close()
           
 void force(org.apache.activemq.kaha.impl.data.DataFile dataFile)
           
 DataItem storeItem(Marshaller marshaller, Object payload, byte type)
           
 void updateItem(DataItem item, Marshaller marshaller, Object payload, byte type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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-2013 The Apache Software Foundation. All Rights Reserved.