journal.io.api
Class RecoveryErrorHandler.AbortOnError

java.lang.Object
  extended by journal.io.api.RecoveryErrorHandler.AbortOnError
All Implemented Interfaces:
RecoveryErrorHandler
Enclosing interface:
RecoveryErrorHandler

public static class RecoveryErrorHandler.AbortOnError
extends Object
implements RecoveryErrorHandler


Nested Class Summary
 
Nested classes/interfaces inherited from interface journal.io.api.RecoveryErrorHandler
RecoveryErrorHandler.AbortOnError, RecoveryErrorHandler.DeleteOnError, RecoveryErrorHandler.IgnoreOnError
 
Field Summary
 
Fields inherited from interface journal.io.api.RecoveryErrorHandler
ABORT, DELETE, IGNORE
 
Constructor Summary
RecoveryErrorHandler.AbortOnError()
           
 
Method Summary
 void onError(Journal journal, List<Location> locations)
          Invoked by the journal during its recovery process in case of a checksum error for the given locations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecoveryErrorHandler.AbortOnError

public RecoveryErrorHandler.AbortOnError()
Method Detail

onError

public void onError(Journal journal,
                    List<Location> locations)
             throws IOException
Description copied from interface: RecoveryErrorHandler
Invoked by the journal during its recovery process in case of a checksum error for the given locations. Please note this method will be invoked once for any batch containing failed locations.

Specified by:
onError in interface RecoveryErrorHandler
Throws:
IOException


Copyright © 2013. All Rights Reserved.