Class ResponseFunctions


  • public class ResponseFunctions
    extends Object

    ResponseFunctions: collection of ResponseFunction objects. This interface is used to asynchronously collect up a set of client responses that will be sent to the client at the next opportunity.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(ResponseFunction wmsResponseFunction)
      Add a function.
      void clear()  
      boolean isPending()
      Are there any pending items in the list.
      int output​(java.io.OutputStream out, int sendChunkSize)
      Write all functions (in order added to list) to OutputStream.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResponseFunctions

        public ResponseFunctions()
    • Method Detail

      • add

        public void add​(ResponseFunction wmsResponseFunction)
        Add a function.
        Parameters:
        wmsResponseFunction - function
      • clear

        public void clear()
      • isPending

        public boolean isPending()
        Are there any pending items in the list.
        Returns:
        true if items in list
      • output

        public int output​(java.io.OutputStream out,
                          int sendChunkSize)
        Write all functions (in order added to list) to OutputStream.
        Parameters:
        out - OutputStream
        Returns:
        total number of bytes written