All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netflix.astyanax.WriteAheadEntry Maven / Gradle / Ivy

There is a newer version: 3.10.2
Show newest version
package com.netflix.astyanax;

import com.netflix.astyanax.connectionpool.exceptions.WalException;

/**
 * 
 * @author elandau
 */
public interface WriteAheadEntry {
    /**
     * Fill a MutationBatch from the data in this entry
     * 
     * @param mutation
     */
    void readMutation(MutationBatch mutation) throws WalException;

    /**
     * Write the contents of this mutation to the WAL entry. Shall be called
     * only once.
     * 
     * @param mutation
     * @throws WalException
     */
    void writeMutation(MutationBatch mutation) throws WalException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy