Class RoutableFactories60.RemoveLocationMessageFactory
java.lang.Object
com.yahoo.documentapi.messagebus.protocol.AbstractRoutableFactory
com.yahoo.documentapi.messagebus.protocol.RoutableFactories60.DocumentMessageFactory
com.yahoo.documentapi.messagebus.protocol.RoutableFactories60.RemoveLocationMessageFactory
- All Implemented Interfaces:
RoutableFactory
- Enclosing class:
- RoutableFactories60
public static class RoutableFactories60.RemoveLocationMessageFactory
extends RoutableFactories60.DocumentMessageFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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.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
-
Constructor Details
-
RemoveLocationMessageFactory
public RemoveLocationMessageFactory()
-
-
Method Details
-
doDecode
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.
-
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.
-