// Path: src/main/java/org/rakam/cache/hazelcast/treemap/operations/IncrementByBackupOperation.java
// public class IncrementByBackupOperation extends TreeMapBaseOperation implements BackupOperation {
//     private long by;
// 
//     public IncrementByBackupOperation(String name, long by) {
//         super(name);
//         this.by = by;
//     }
// 
//     public IncrementByBackupOperation() {
// 
//     }
// 
//     @Override
//     public void run() throws Exception {
//         OrderedCounterMap map = ((TreeMapService) getService()).getHLL(name);
// 
//         map.increment(name, by);
//     }
// 
//     @Override
//     public int getId() {
//         return TreeMapSerializerFactory.ADD_BACKUP;
//     }
// }


import com.hazelcast.map.operation.KeyBasedMapOperation;
import com.hazelcast.nio.ObjectDataInput;
import com.hazelcast.nio.ObjectDataOutput;
import com.hazelcast.nio.serialization.Data;
import com.hazelcast.spi.BackupAwareOperation;
import com.hazelcast.spi.Operation;
import org.rakam.cache.hazelcast.treemap.operations.IncrementByBackupOperation;
import java.io.IOException;
    @Override
    public void run() throws Exception {

        getService();

    }

    @Override
    public Object getResponse() {
        return null;
    }


    @Override
    public boolean shouldBackup() {
        return true;
    }

    @Override
    public int getSyncBackupCount() {
        return 0;
    }

    @Override
    public int getAsyncBackupCount() {
        return 0;
    }

    @Override
    public Operation getBackupOperation() {
// Path: src/main/java/org/rakam/cache/hazelcast/treemap/operations/IncrementByBackupOperation.java
// public class IncrementByBackupOperation extends TreeMapBaseOperation implements BackupOperation {
//     private long by;
// 
//     public IncrementByBackupOperation(String name, long by) {
//         super(name);
//         this.by = by;
//     }
// 
//     public IncrementByBackupOperation() {
// 
//     }
// 
//     @Override
//     public void run() throws Exception {
//         OrderedCounterMap map = ((TreeMapService) getService()).getHLL(name);
// 
//         map.increment(name, by);
//     }
// 
//     @Override
//     public int getId() {
//         return TreeMapSerializerFactory.ADD_BACKUP;
//     }
// }


// Path: src/main/java/org/rakam/cache/hazelcast/customMap/operations/IncrementByOperation.java
import com.hazelcast.map.operation.KeyBasedMapOperation;
import com.hazelcast.nio.ObjectDataInput;
import com.hazelcast.nio.ObjectDataOutput;
import com.hazelcast.nio.serialization.Data;
import com.hazelcast.spi.BackupAwareOperation;
import com.hazelcast.spi.Operation;
import org.rakam.cache.hazelcast.treemap.operations.IncrementByBackupOperation;
import java.io.IOException;

    @Override
    public void run() throws Exception {

        getService();

    }

    @Override
    public Object getResponse() {
        return null;
    }


    @Override
    public boolean shouldBackup() {
        return true;
    }

    @Override
    public int getSyncBackupCount() {
        return 0;
    }

    @Override
    public int getAsyncBackupCount() {
        return 0;
    }

    @Override
    public Operation getBackupOperation() {
        return new IncrementByBackupOperation();