com.fasterxml.clustermate.service.msg.DeleteResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clustermate-service Show documentation
Show all versions of clustermate-service Show documentation
Building blocks for ClusterMate-based services and servers.
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;
}
}