Class MultiResponse

  • All Implemented Interfaces:
    java.lang.Iterable<OpResult>, org.apache.jute.Record

    public class MultiResponse
    extends java.lang.Object
    implements org.apache.jute.Record, java.lang.Iterable<OpResult>
    Handles the response from a multi request. Such a response consists of a sequence of responses each prefixed by a MultiResponse that indicates the type of the response. The end of the list is indicated by a MultiHeader with a negative type. Each individual response is in the same format as with the corresponding operation in the original request list.
    • Constructor Summary

      Constructors 
      Constructor Description
      MultiResponse()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(OpResult x)  
      void deserialize​(org.apache.jute.InputArchive archive, java.lang.String tag)  
      boolean equals​(java.lang.Object o)  
      java.util.List<OpResult> getResultList()  
      int hashCode()  
      java.util.Iterator<OpResult> iterator()  
      void serialize​(org.apache.jute.OutputArchive archive, java.lang.String tag)  
      int size()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • MultiResponse

        public MultiResponse()
    • Method Detail

      • iterator

        public java.util.Iterator<OpResult> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<OpResult>
      • size

        public int size()
      • serialize

        public void serialize​(org.apache.jute.OutputArchive archive,
                              java.lang.String tag)
                       throws java.io.IOException
        Specified by:
        serialize in interface org.apache.jute.Record
        Throws:
        java.io.IOException
      • deserialize

        public void deserialize​(org.apache.jute.InputArchive archive,
                                java.lang.String tag)
                         throws java.io.IOException
        Specified by:
        deserialize in interface org.apache.jute.Record
        Throws:
        java.io.IOException
      • getResultList

        public java.util.List<OpResult> getResultList()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object