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

io.elastic.sailor.impl.CountingCallbackImpl Maven / Gradle / Ivy

There is a newer version: 4.0.3
Show newest version
package io.elastic.sailor.impl;

import io.elastic.sailor.CountingCallback;

public abstract class CountingCallbackImpl implements CountingCallback {

    private int count;

    public abstract void receiveData(Object data);

    @Override
    public void receive(Object data) {
        receiveData(data);
        this.count++;
    }

    @Override
    public int getCount() {
        return count;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy