org.redkalex.source.mysql.MyReqClose Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redkale-plugins Show documentation
Show all versions of redkale-plugins Show documentation
Redkale-Plugins -- java framework
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkalex.source.mysql;
import static org.redkalex.source.mysql.MyClientRequest.REQ_TYPE_UPDATE;
import java.util.Objects;
import org.redkale.net.client.ClientConnection;
import org.redkale.util.ByteArray;
/** @author zhangjx */
public class MyReqClose extends MyClientRequest {
public MyReqClose() {}
@Override
public int getType() {
return REQ_TYPE_UPDATE;
}
@Override
public final boolean isCloseType() {
return true;
}
@Override
public String toString() {
return "MyReqClose_" + Objects.hashCode(this) + "{type=" + getType() + "}";
}
@Override
public void writeTo(ClientConnection conn, ByteArray array) {
Mysqls.writeUB3(array, 1);
array.put(packetIndex);
array.put(Mysqls.COM_QUIT);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy