org.basex.server
Class ClientBlocker

java.lang.Object
  extended by org.basex.server.ClientBlocker

public final class ClientBlocker
extends java.lang.Object

This class delays blocked clients.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Constructor Summary
ClientBlocker()
           
 
Method Summary
 int delay(byte[] client)
          Registers the client and returns a delay time.
 void remove(byte[] client)
          Resets the login delay after successful login.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientBlocker

public ClientBlocker()
Method Detail

delay

public int delay(byte[] client)
Registers the client and returns a delay time.

Parameters:
client - client address
Returns:
number of seconds to wait

remove

public void remove(byte[] client)
Resets the login delay after successful login.

Parameters:
client - client address