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

io.honeycomb.libhoney.responses.impl.SimpleBatchData Maven / Gradle / Ivy

The newest version!
package io.honeycomb.libhoney.responses.impl;

import io.honeycomb.libhoney.responses.ServerResponse;

class SimpleBatchData implements ServerResponse.BatchData {
    private final int positionInBatch;
    private final int batchStatusCode;

    SimpleBatchData(final int positionInBatch, final int batchStatusCode) {
        this.positionInBatch = positionInBatch;
        this.batchStatusCode = batchStatusCode;
    }

    @Override
    public int getPositionInBatch() {
        return positionInBatch;
    }

    @Override
    public int getBatchStatusCode() {
        return batchStatusCode;
    }

    @Override
    public String toString() {
        return "SimpleBatchData{" +
            "positionInBatch=" + positionInBatch +
            ", batchStatusCode=" + batchStatusCode +
            '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy