com.github.brainlag.nsq.frames.ResponseFrame Maven / Gradle / Ivy
package com.github.brainlag.nsq.frames;
import org.apache.logging.log4j.LogManager;
import java.io.UnsupportedEncodingException;
public class ResponseFrame extends NSQFrame {
public String getMessage() {
try {
return new String(getData(), "utf8");
} catch (UnsupportedEncodingException e) {
LogManager.getLogger(this).error("Caught", e);
}
return null;
}
public String toString() {
return "RESPONSE: " + this.getMessage();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy