com.netflix.astyanax.impl
Class NoOpWriteAheadLog

java.lang.Object
  extended by com.netflix.astyanax.impl.NoOpWriteAheadLog
All Implemented Interfaces:
WriteAheadLog

public class NoOpWriteAheadLog
extends java.lang.Object
implements WriteAheadLog


Constructor Summary
NoOpWriteAheadLog()
           
 
Method Summary
 WriteAheadEntry createEntry()
          Add an entry to WAL before it is sent to Cassandra.
 WriteAheadEntry readNextEntry()
          Read the next entry to retry from the wall.
 void removeEntry(WriteAheadEntry entry)
          Remove an entry from the WAL after it was successfully written to cassandra
 void retryEntry(WriteAheadEntry entry)
          Retry an entry retrieved by calling getNextEntry();
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoOpWriteAheadLog

public NoOpWriteAheadLog()
Method Detail

createEntry

public WriteAheadEntry createEntry()
                            throws com.netflix.astyanax.connectionpool.exceptions.WalException
Description copied from interface: WriteAheadLog
Add an entry to WAL before it is sent to Cassandra.

Specified by:
createEntry in interface WriteAheadLog
Returns:
Throws:
com.netflix.astyanax.connectionpool.exceptions.WalException

removeEntry

public void removeEntry(WriteAheadEntry entry)
Description copied from interface: WriteAheadLog
Remove an entry from the WAL after it was successfully written to cassandra

Specified by:
removeEntry in interface WriteAheadLog

readNextEntry

public WriteAheadEntry readNextEntry()
Description copied from interface: WriteAheadLog
Read the next entry to retry from the wall. Call remove if successful or retryEntry if unable to write to cassandra.

Specified by:
readNextEntry in interface WriteAheadLog
Returns:

retryEntry

public void retryEntry(WriteAheadEntry entry)
Description copied from interface: WriteAheadLog
Retry an entry retrieved by calling getNextEntry();

Specified by:
retryEntry in interface WriteAheadLog