Class RoutableFactories60.DocumentIgnoredReplyFactory
java.lang.Object
com.yahoo.documentapi.messagebus.protocol.AbstractRoutableFactory
com.yahoo.documentapi.messagebus.protocol.RoutableFactories60.DocumentReplyFactory
com.yahoo.documentapi.messagebus.protocol.RoutableFactories60.DocumentIgnoredReplyFactory
- All Implemented Interfaces:
RoutableFactory
- Enclosing class:
- RoutableFactories60
public static class RoutableFactories60.DocumentIgnoredReplyFactory
extends RoutableFactories60.DocumentReplyFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DocumentReplydoDecode(com.yahoo.document.serialization.DocumentDeserializer buf) This method decodes a reply from the given byte buffer.protected booleandoEncode(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, encodeMethods inherited from class com.yahoo.documentapi.messagebus.protocol.AbstractRoutableFactory
decodeString, encodeStringMethods 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
encode
-
Constructor Details
-
DocumentIgnoredReplyFactory
public DocumentIgnoredReplyFactory()
-
-
Method Details
-
doDecode
Description copied from class:RoutableFactories60.DocumentReplyFactoryThis 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:
doDecodein 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.DocumentReplyFactoryThis 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:
doEncodein classRoutableFactories60.DocumentReplyFactory- Parameters:
obj- The reply to encode.buf- The byte buffer to write to.- Returns:
- True if the message was encoded.
-