Class RoutableFactories60.GetBucketListMessageFactory
- java.lang.Object
-
- com.yahoo.documentapi.messagebus.protocol.AbstractRoutableFactory
-
- com.yahoo.documentapi.messagebus.protocol.RoutableFactories60.DocumentMessageFactory
-
- com.yahoo.documentapi.messagebus.protocol.RoutableFactories60.GetBucketListMessageFactory
-
- All Implemented Interfaces:
RoutableFactory
- Enclosing class:
- RoutableFactories60
public static class RoutableFactories60.GetBucketListMessageFactory extends RoutableFactories60.DocumentMessageFactory
-
-
Constructor Summary
Constructors Constructor Description GetBucketListMessageFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
decodeBucketSpace(com.yahoo.vespa.objects.Deserializer deserializer)
protected DocumentMessage
doDecode(com.yahoo.document.serialization.DocumentDeserializer buf)
This method decodes a message from the given deserializer.protected boolean
doEncode(DocumentMessage obj, com.yahoo.document.serialization.DocumentSerializer buf)
This method encodes the given message using the given serializer.protected boolean
encodeBucketSpace(java.lang.String bucketSpace, com.yahoo.document.serialization.DocumentSerializer buf)
-
Methods inherited from class com.yahoo.documentapi.messagebus.protocol.RoutableFactories60.DocumentMessageFactory
decode, encode
-
Methods inherited from class com.yahoo.documentapi.messagebus.protocol.AbstractRoutableFactory
decodeString, encodeString
-
-
-
-
Method Detail
-
decodeBucketSpace
protected java.lang.String decodeBucketSpace(com.yahoo.vespa.objects.Deserializer deserializer)
-
doDecode
protected DocumentMessage doDecode(com.yahoo.document.serialization.DocumentDeserializer buf)
Description copied from class:RoutableFactories60.DocumentMessageFactory
This method decodes a message from the given deserializer. You are guaranteed to only receive byte buffers generated by a previous call toRoutableFactories60.DocumentMessageFactory.doEncode(DocumentMessage, DocumentSerializer)
.This method is NOT exception safe. Return null to signal failure.
- Specified by:
doDecode
in classRoutableFactories60.DocumentMessageFactory
- Parameters:
buf
- The deserializer to use for decoding.- Returns:
- The decoded message.
-
encodeBucketSpace
protected boolean encodeBucketSpace(java.lang.String bucketSpace, com.yahoo.document.serialization.DocumentSerializer buf)
-
doEncode
protected boolean doEncode(DocumentMessage obj, com.yahoo.document.serialization.DocumentSerializer buf)
Description copied from class:RoutableFactories60.DocumentMessageFactory
This method encodes the given message using the given serializer. You are guaranteed to only receive messages of the type that this factory was registered for.This method is NOT exception safe. Return false to signal failure.
- Specified by:
doEncode
in classRoutableFactories60.DocumentMessageFactory
- Parameters:
obj
- The message to encode.buf
- The serializer to use for encoding.- Returns:
- True if the message was encoded.
-
-