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

com.fasterxml.clustermate.service.msg.DeleteResponse Maven / Gradle / Ivy

There is a newer version: 0.10.5
Show newest version
package com.fasterxml.clustermate.service.msg;

import com.fasterxml.clustermate.api.EntryKey;

/**
 * POJO returned as a result of successful DELETE request
 * (which ideally should be any and all DELETE requests)
 */
public class DeleteResponse extends CRUDResponseBase
{
    public final static String PATH_FOR_INLINED = "NA";

    /**
     * Number of entries confirmed deleted, if known; -1 if not yet known
     * (deferred deletes)
     */
    public int count;

    @Deprecated
    public DeleteResponse(K key) {
        super(key, "OK");
        count = 0;
    }

    public DeleteResponse(K key, int count) {
        super(key, "OK");
        this.count = count;
    }

    // For errors
    public DeleteResponse(K key, String message, int count) {
        super(key, message);
        this.count = count;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy