Class SbeKit
java.lang.Object
com.iohao.net.common.SbeKit
-
Method Summary
Modifier and TypeMethodDescriptionstatic voiddecoderMessageCommon(RemoteMessage message, CommonMessageDecoder common) Decodes common remote-message fields with the activesbeCodec.static voiddecoderUserIdentity(UserIdentity message, UserIdentityMessageDecoder userIdentity) Decodes user identity fields with the activesbeCodec.static voidencoderMessageCommon(RemoteMessage message, CommonMessageEncoder common) Encodes common remote-message fields with the activesbeCodec.static voidencoderUserIdentity(UserIdentity message, UserIdentityMessageEncoder userIdentity) Encodes user identity fields with the activesbeCodec.static voidsetSbeCodec(SbeCodec sbeCodec)
-
Method Details
-
encoderUserIdentity
public static void encoderUserIdentity(UserIdentity message, UserIdentityMessageEncoder userIdentity) Encodes user identity fields with the activesbeCodec.- Parameters:
message- source modeluserIdentity- target SBE encoder
-
decoderUserIdentity
public static void decoderUserIdentity(UserIdentity message, UserIdentityMessageDecoder userIdentity) Decodes user identity fields with the activesbeCodec.- Parameters:
message- target modeluserIdentity- source SBE decoder
-
encoderMessageCommon
Encodes common remote-message fields with the activesbeCodec.- Parameters:
message- source modelcommon- target SBE encoder
-
decoderMessageCommon
Decodes common remote-message fields with the activesbeCodec.- Parameters:
message- target modelcommon- source SBE decoder
-
setSbeCodec
-