Class TruncateResponseHandler

    • Field Detail

      • logger

        protected static final org.slf4j.Logger logger
      • condition

        protected final Condition condition
      • responses

        protected final java.util.concurrent.atomic.AtomicInteger responses
    • Constructor Detail

      • TruncateResponseHandler

        public TruncateResponseHandler​(int responseCount)
    • Method Detail

      • get

        public void get()
                 throws java.util.concurrent.TimeoutException
        Throws:
        java.util.concurrent.TimeoutException
      • invokeOnFailure

        public boolean invokeOnFailure()
        Description copied from interface: RequestCallback
        Returns true if the callback handles failure reporting - in which case the remove host will be asked to report failures to us in the event of a problem processing the request. TODO: this is an error prone method, and we should be handling failures everywhere so we should probably just start doing that, and remove this method
        Specified by:
        invokeOnFailure in interface RequestCallback<TruncateResponse>
        Returns:
        true if the callback should be invoked on failure