Package com.attivio.util.ft
Interface TransactionReceiver
-
public interface TransactionReceiverBasic interface to handle reading individual entries from a transaction log
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanadd(long progress, byte[] id, IngestDocument doc)Receive anIngestDocumentfrom the transaction logdefault booleanadd(long progress, PlatformMessage message)Receive aPlatformMessagefrom the transaction logbooleandelete(long progress, byte[] id)Receive anIngestDocumentdeletion from the transaction logbooleandelete(long progress, Query query)Receive aQuery-based deletion from the transaction log
-
-
-
Method Detail
-
add
boolean add(long progress, byte[] id, IngestDocument doc) throws java.io.IOExceptionReceive anIngestDocumentfrom the transaction log- Returns:
- true if the transaction log recovery should continue - false if it should be canceled
- Throws:
java.io.IOException
-
delete
boolean delete(long progress, byte[] id) throws java.io.IOExceptionReceive anIngestDocumentdeletion from the transaction log- Returns:
- true if the transaction log recovery should continue - false if it should be canceled
- Throws:
java.io.IOException
-
delete
boolean delete(long progress, Query query) throws java.io.IOExceptionReceive aQuery-based deletion from the transaction log- Returns:
- true if the transaction log recovery should continue - false if it should be canceled
- Throws:
java.io.IOException
-
add
default boolean add(long progress, PlatformMessage message) throws java.io.IOExceptionReceive aPlatformMessagefrom the transaction log- Returns:
- true if the transaction log recovery should continue - false if it should be canceled
- Throws:
java.io.IOException
-
-