Class AbstractRoutableFactory

java.lang.Object
com.yahoo.documentapi.messagebus.protocol.AbstractRoutableFactory
All Implemented Interfaces:
RoutableFactory
Direct Known Subclasses:
RoutableFactories60.DocumentMessageFactory, RoutableFactories60.DocumentReplyFactory

public abstract class AbstractRoutableFactory extends Object implements RoutableFactory
Author:
Simon Thoresen Hult
  • Constructor Details

    • AbstractRoutableFactory

      public AbstractRoutableFactory()
  • Method Details

    • decodeString

      public static String decodeString(com.yahoo.vespa.objects.Deserializer in)
      Reads a string from the given buffer that was previously written by encodeString(String, com.yahoo.vespa.objects.Serializer).
      Parameters:
      in - The byte buffer to read from.
      Returns:
      The decoded string.
    • encodeString

      public static void encodeString(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 using decodeString(com.yahoo.vespa.objects.Deserializer).
      Parameters:
      str - The string to encode.
      out - The byte buffer to write to.