org.codelibs.elasticsearch.idxproxy.action.WriteResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticsearch-indexing-proxy Show documentation
Show all versions of elasticsearch-indexing-proxy Show documentation
This plugin provides a proxy for indexing.
package org.codelibs.elasticsearch.idxproxy.action;
import java.io.IOException;
import org.elasticsearch.action.support.master.AcknowledgedResponse;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
public class WriteResponse extends AcknowledgedResponse {
public WriteResponse() {
}
public WriteResponse(final boolean acknowledged) {
super(acknowledged);
}
@Override
public void readFrom(final StreamInput in) throws IOException {
super.readFrom(in);
readAcknowledged(in);
}
@Override
public void writeTo(final StreamOutput out) throws IOException {
super.writeTo(out);
writeAcknowledged(out);
}
}