com.caucho.network.listen
Class Throttle

java.lang.Object
  extended by com.caucho.network.listen.Throttle
Direct Known Subclasses:
ProThrottle

@Configurable
public class Throttle
extends java.lang.Object

Throttles connections


Constructor Summary
protected Throttle()
           
 
Method Summary
 boolean accept(QSocket socket)
           
 void close(QSocket socket)
           
static Throttle createPro()
           
 int getMaxConcurrentRequests()
           
 void setMaxConcurrentRequests(int max)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Throttle

protected Throttle()
Method Detail

setMaxConcurrentRequests

public void setMaxConcurrentRequests(int max)

getMaxConcurrentRequests

public int getMaxConcurrentRequests()

createPro

public static Throttle createPro()

accept

public boolean accept(QSocket socket)

close

public void close(QSocket socket)