com.atlassian.httpclient.base
Class RequestKiller

java.lang.Object
  extended by com.atlassian.httpclient.base.RequestKiller
All Implemented Interfaces:
java.lang.Runnable

public final class RequestKiller
extends java.lang.Object
implements java.lang.Runnable

A request killer for ensuring a request doesn't take too long. While connection and socket timeouts deal with waiting for an TCP connection and a long delay in new content, respectively, this thread kills requests that may be trickling content down in such a way that doesn't trip the socket timeout.


Constructor Summary
RequestKiller(java.lang.String namePrefix)
           
 
Method Summary
 void completedRequest(org.apache.http.client.methods.AbortableHttpRequest request)
           
 void registerRequest(org.apache.http.client.methods.AbortableHttpRequest request, long millisToLive)
           
 void run()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestKiller

public RequestKiller(java.lang.String namePrefix)
Method Detail

registerRequest

public void registerRequest(org.apache.http.client.methods.AbortableHttpRequest request,
                            long millisToLive)

start

public void start()

stop

public void stop()
          throws java.lang.Exception
Throws:
java.lang.Exception

run

public void run()
Specified by:
run in interface java.lang.Runnable

completedRequest

public void completedRequest(org.apache.http.client.methods.AbortableHttpRequest request)


Copyright © 2012 Atlassian. All Rights Reserved.