Package io.ably.lib.types
Class AnnotationSerializer
java.lang.Object
io.ably.lib.types.AnnotationSerializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpCore.RequestBodyasJsonRequest(Annotation[] annotations) static HttpCore.RequestBodyasMsgpackRequest(Annotation[] annotations) static HttpCore.BodyHandler<Annotation>getAnnotationResponseHandler(ChannelOptions channelOptions) static Annotation[]readMessagesFromJson(byte[] packed) static Annotation[]readMsgpack(byte[] packed) static Annotation[]readMsgpackArray(org.msgpack.core.MessageUnpacker unpacker) static voidwriteMsgpackArray(Annotation[] annotations, org.msgpack.core.MessagePacker packer)
-
Constructor Details
-
AnnotationSerializer
public AnnotationSerializer()
-
-
Method Details
-
writeMsgpackArray
public static void writeMsgpackArray(Annotation[] annotations, org.msgpack.core.MessagePacker packer) -
readMsgpackArray
public static Annotation[] readMsgpackArray(org.msgpack.core.MessageUnpacker unpacker) throws IOException - Throws:
IOException
-
asMsgpackRequest
-
asJsonRequest
-
getAnnotationResponseHandler
public static HttpCore.BodyHandler<Annotation> getAnnotationResponseHandler(ChannelOptions channelOptions) -
readMsgpack
- Throws:
AblyException
-
readMessagesFromJson
- Throws:
MessageDecodeException
-