Klasse WireProtocolMessage
java.lang.Object
de.caluga.morphium.driver.wireprotocol.WireProtocolMessage
- Bekannte direkte Unterklassen:
OpCompressed, OpDelete, OpGetMore, OpInsert, OpKillCursors, OpMsg, OpQuery, OpReply, OpUpdate
-
Verschachtelte Klassen - Übersicht
Verschachtelte Klassen -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungfinal byte[]bytes()intabstract intabstract byte[]intintgetSize()static WireProtocolMessageabstract voidparsePayload(byte[] bytes, int offset) static intreadInt(byte[] bytes, int idx) static longreadLong(byte[] bytes, int idx) static StringreadString(byte[] bytes, int idx) voidsetMessageId(int messageId) voidsetResponseTo(int responseTo) voidsetSize(int size) static intstrLen(byte[] bytes, int idx) voidwriteInt(int value, OutputStream to) static voidwriteLong(long lng, OutputStream out) voidwriteString(String n, OutputStream to)
-
Konstruktordetails
-
WireProtocolMessage
public WireProtocolMessage()
-
-
Methodendetails
-
parseFromStream
- Löst aus:
SocketException
-
readString
-
strLen
public static int strLen(byte[] bytes, int idx) -
readInt
public static int readInt(byte[] bytes, int idx) -
readLong
public static long readLong(byte[] bytes, int idx) -
writeLong
- Löst aus:
IOException
-
parsePayload
- Löst aus:
IOException
-
getPayload
- Löst aus:
IOException
-
getOpCode
public abstract int getOpCode() -
bytes
- Löst aus:
IOException
-
getSize
public int getSize() -
setSize
public void setSize(int size) -
getMessageId
public int getMessageId() -
setMessageId
public void setMessageId(int messageId) -
getResponseTo
public int getResponseTo() -
setResponseTo
public void setResponseTo(int responseTo) -
writeInt
- Löst aus:
IOException
-
writeString
- Löst aus:
IOException
-