Class AbstractRoutableFactory
java.lang.Object
com.yahoo.documentapi.messagebus.protocol.AbstractRoutableFactory
- All Implemented Interfaces:
RoutableFactory
- Direct Known Subclasses:
RoutableFactories60.DocumentMessageFactory,RoutableFactories60.DocumentReplyFactory
- Author:
- Simon Thoresen Hult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdecodeString(com.yahoo.vespa.objects.Deserializer in) Reads a string from the given buffer that was previously written byencodeString(String, com.yahoo.vespa.objects.Serializer).static voidencodeString(String str, com.yahoo.vespa.objects.Serializer out) Writes the given string to the given byte buffer in such a way that it can be decoded usingdecodeString(com.yahoo.vespa.objects.Deserializer).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.yahoo.documentapi.messagebus.protocol.RoutableFactory
decode, encode, encode
-
Constructor Details
-
AbstractRoutableFactory
public AbstractRoutableFactory()
-
-
Method Details
-
decodeString
Reads a string from the given buffer that was previously written byencodeString(String, com.yahoo.vespa.objects.Serializer).- Parameters:
in- The byte buffer to read from.- Returns:
- The decoded string.
-
encodeString
Writes the given string to the given byte buffer in such a way that it can be decoded usingdecodeString(com.yahoo.vespa.objects.Deserializer).- Parameters:
str- The string to encode.out- The byte buffer to write to.
-