Class StaleRequestCapabilities


  • public class StaleRequestCapabilities
    extends java.lang.Object
    Client capability that signals how the client handles stale requests (e.g. a request for which the client will not process the response anymore since the information is outdated).

    Since 3.17.0

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.util.List<java.lang.String> getRetryOnContentModified()
      The list of requests for which the client will retry the request if it receives a response with error code ContentModified
      int hashCode()  
      boolean isCancel()
      The client will actively cancel the request.
      void setCancel​(boolean cancel)
      The client will actively cancel the request.
      void setRetryOnContentModified​(java.util.List<java.lang.String> retryOnContentModified)
      The list of requests for which the client will retry the request if it receives a response with error code ContentModified
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • StaleRequestCapabilities

        public StaleRequestCapabilities()
      • StaleRequestCapabilities

        public StaleRequestCapabilities​(boolean cancel,
                                        java.util.List<java.lang.String> retryOnContentModified)
    • Method Detail

      • isCancel

        public boolean isCancel()
        The client will actively cancel the request.
      • setCancel

        public void setCancel​(boolean cancel)
        The client will actively cancel the request.
      • getRetryOnContentModified

        public java.util.List<java.lang.String> getRetryOnContentModified()
        The list of requests for which the client will retry the request if it receives a response with error code ContentModified
      • setRetryOnContentModified

        public void setRetryOnContentModified​(java.util.List<java.lang.String> retryOnContentModified)
        The list of requests for which the client will retry the request if it receives a response with error code ContentModified
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

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

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