Package org.mariadb.r2dbc.message.server
Class EofPacket
- java.lang.Object
-
- org.mariadb.r2dbc.message.server.EofPacket
-
- All Implemented Interfaces:
ServerMessage
public class EofPacket extends Object implements ServerMessage
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EofPacketdecode(Sequencer sequencer, io.netty.buffer.ByteBuf buf, Context context, boolean resultSetEnd)static EofPacketdecodeOutputParam(Sequencer sequencer, io.netty.buffer.ByteBuf buf, Context context)This is for mysql that doesn't send MORE_RESULTS_EXISTS flag, but sending an OK_Packet after, breaking protocol.booleanending()shortgetServerStatus()shortgetWarningCount()booleanresultSetEnd()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.mariadb.r2dbc.message.ServerMessage
refCnt, release
-
-
-
-
Constructor Detail
-
EofPacket
public EofPacket(Sequencer sequencer, short serverStatus, short warningCount, boolean resultSetEnd, boolean ending)
-
-
Method Detail
-
decode
public static EofPacket decode(Sequencer sequencer, io.netty.buffer.ByteBuf buf, Context context, boolean resultSetEnd)
-
decodeOutputParam
public static EofPacket decodeOutputParam(Sequencer sequencer, io.netty.buffer.ByteBuf buf, Context context)
This is for mysql that doesn't send MORE_RESULTS_EXISTS flag, but sending an OK_Packet after, breaking protocol.- Parameters:
sequencer- sequencerbuf- current EOF bufcontext- current context- Returns:
- Eof packet
-
getServerStatus
public short getServerStatus()
-
getWarningCount
public short getWarningCount()
-
ending
public boolean ending()
- Specified by:
endingin interfaceServerMessage
-
resultSetEnd
public boolean resultSetEnd()
- Specified by:
resultSetEndin interfaceServerMessage
-
-