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

org.joyqueue.broker.kafka.command.SaslHandshakeResponse Maven / Gradle / Ivy

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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy