JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.793

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.http.timers.request

Class HttpRequestTimer



  • @ThreadSafe
    public class HttpRequestTimer
    extends Object 
    Represents a timer class to enforce HTTP request timeouts.
    • Constructor Detail

      • HttpRequestTimer

        public HttpRequestTimer()
    • Method Detail

      • startTimer

        public HttpRequestAbortTaskTracker startTimer(org.apache.http.client.methods.HttpRequestBase apacheRequest,
         int requestTimeoutMillis)
        Start the timer with the specified timeout and return a object that can be used to track the state of the timer and cancel it if need be.
        Parameters:
        apacheRequest - HTTP request this timer will abort if triggered.
        requestTimeoutMillis - A positive value here enables the timer, a non-positive value disables it and returns a dummy tracker task
        Returns:
        Implementation of HttpRequestAbortTaskTrackerImpl to query the state of the task and cancel it if appropriate
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /