com.caucho.network.listen
Class ProThrottle

java.lang.Object
  extended by com.caucho.network.listen.Throttle
      extended by com.caucho.network.listen.ProThrottle

public class ProThrottle
extends Throttle

Throttles connections


Constructor Summary
ProThrottle()
           
 
Method Summary
 boolean accept(QSocket socket)
           
 void close(QSocket socket)
           
 int getMaxConcurrentRequests()
           
 int getRequestCount()
           
 void setMaxConcurrentRequests(int maxConcurrentRequests)
           
 
Methods inherited from class com.caucho.network.listen.Throttle
createPro
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProThrottle

public ProThrottle()
Method Detail

getMaxConcurrentRequests

public int getMaxConcurrentRequests()
Overrides:
getMaxConcurrentRequests in class Throttle

setMaxConcurrentRequests

public void setMaxConcurrentRequests(int maxConcurrentRequests)
Overrides:
setMaxConcurrentRequests in class Throttle

getRequestCount

public int getRequestCount()

accept

public boolean accept(QSocket socket)
Overrides:
accept in class Throttle

close

public void close(QSocket socket)
Overrides:
close in class Throttle