org.joyqueue.broker.kafka.command.SaslHandshakeResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of joyqueue-broker-kafka Show documentation
Show all versions of joyqueue-broker-kafka Show documentation
Kafka protocol support library
The newest version!
package org.joyqueue.broker.kafka.command;
import org.joyqueue.broker.kafka.KafkaCommandType;
import java.util.List;
/**
* SaslHandshakeResponse
* author: gaohaoxiang
* date: 2020/4/9
*/
public class SaslHandshakeResponse extends KafkaRequestOrResponse {
private short errorCode;
private List mechanisms;
public SaslHandshakeResponse() {
}
public SaslHandshakeResponse(short errorCode, List mechanisms) {
this.errorCode = errorCode;
this.mechanisms = mechanisms;
}
public short getErrorCode() {
return errorCode;
}
public void setErrorCode(short errorCode) {
this.errorCode = errorCode;
}
public List getMechanisms() {
return mechanisms;
}
public void setMechanisms(List mechanisms) {
this.mechanisms = mechanisms;
}
@Override
public int type() {
return KafkaCommandType.SASL_HANDSHAKE.getCode();
}
}