Class RoutableFactories60.RemoveLocationReplyFactory
java.lang.Object
com.yahoo.documentapi.messagebus.protocol.AbstractRoutableFactory
com.yahoo.documentapi.messagebus.protocol.RoutableFactories60.DocumentReplyFactory
com.yahoo.documentapi.messagebus.protocol.RoutableFactories60.RemoveLocationReplyFactory
- All Implemented Interfaces:
RoutableFactory
- Enclosing class:
- RoutableFactories60
public static class RoutableFactories60.RemoveLocationReplyFactory
extends RoutableFactories60.DocumentReplyFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected DocumentReply
doDecode
(com.yahoo.document.serialization.DocumentDeserializer buf) This method decodes a reply from the given byte buffer.protected boolean
doEncode
(DocumentReply obj, com.yahoo.document.serialization.DocumentSerializer buf) This method encodes the given reply into the given byte buffer.Methods inherited from class com.yahoo.documentapi.messagebus.protocol.RoutableFactories60.DocumentReplyFactory
decode, encode
Methods inherited from class com.yahoo.documentapi.messagebus.protocol.AbstractRoutableFactory
decodeString, encodeString
-
Constructor Details
-
RemoveLocationReplyFactory
public RemoveLocationReplyFactory()
-
-
Method Details
-
doDecode
Description copied from class:RoutableFactories60.DocumentReplyFactory
This method decodes a reply from the given byte buffer. You are guaranteed to only receive byte buffers generated by a previous call toRoutableFactories60.DocumentReplyFactory.doEncode(DocumentReply, com.yahoo.document.serialization.DocumentSerializer)
.This method is NOT exception safe. Return null to signal failure.
- Specified by:
doDecode
in classRoutableFactories60.DocumentReplyFactory
- Parameters:
buf
- The byte buffer to read from.- Returns:
- The decoded reply.
-
doEncode
protected boolean doEncode(DocumentReply obj, com.yahoo.document.serialization.DocumentSerializer buf) Description copied from class:RoutableFactories60.DocumentReplyFactory
This method encodes the given reply into the given byte buffer. You are guaranteed to only receive replies 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.DocumentReplyFactory
- Parameters:
obj
- The reply to encode.buf
- The byte buffer to write to.- Returns:
- True if the message was encoded.
-