Class Invocation

    • Constructor Detail

      • Invocation

        protected Invocation​(int index)
        Construct a new instance.
        Parameters:
        index - the invocation index
    • Method Detail

      • getIndex

        public int getIndex()
        Get the invocation index.
        Returns:
        the invocation index
      • handleResponse

        public abstract void handleResponse​(int parameter,
                                            MessageInputStream inputStream)
        Handle a response on this invocation. The response may be final or it may be an update. Long tasks should be executed in a worker thread. This method must guarantee that inputStream is closed.
        Parameters:
        parameter - the numeric parameter passed in to the tracker
        inputStream - the body of the message
      • handleClosed

        public abstract void handleClosed()
        Handle closure of the channel.
      • handleException

        public abstract void handleException​(IOException exception)
        Handle a failure that occurred on the channel while the invocation was outstanding.
        Parameters:
        exception - the exception that was thrown