org.apache.james.util.connection
Class ConnectionPerIpMap

java.lang.Object
  extended by org.apache.james.util.connection.ConnectionPerIpMap

public class ConnectionPerIpMap
extends java.lang.Object

Map which holds information about the connection count per ip


Constructor Summary
ConnectionPerIpMap()
           
 
Method Summary
 void addConnectionPerIP(java.lang.String ip)
          Raise the connectionCount for the given ipAdrress
 void clearConnectionPerIP()
          Clear the connection count map
 int getConnectionPerIP(java.lang.String ip)
          Get the count of connections for the given ip
 void removeConnectionPerIP(java.lang.String ip)
          Set the connection count for the given ipAddress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionPerIpMap

public ConnectionPerIpMap()
Method Detail

addConnectionPerIP

public void addConnectionPerIP(java.lang.String ip)
Raise the connectionCount for the given ipAdrress

Parameters:
ip - raise the connectionCount for the given ipAddress

getConnectionPerIP

public int getConnectionPerIP(java.lang.String ip)
Get the count of connections for the given ip

Parameters:
ip - the ipAddress to get the connections for.
Returns:
count

removeConnectionPerIP

public void removeConnectionPerIP(java.lang.String ip)
Set the connection count for the given ipAddress

Parameters:
ip - ipAddres for which we want to set the count

clearConnectionPerIP

public void clearConnectionPerIP()
Clear the connection count map



Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.