|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.user1.union.module.MaxConcurrentConnection
public class MaxConcurrentConnection
A module that only allows a configurable number of clients with the same connection address to connect concurrently.
Constructor Summary | |
---|---|
MaxConcurrentConnection()
|
Method Summary | |
---|---|
boolean |
init(ModuleContext ctx)
Called when the module is initialized. |
void |
onClientDisconnect(ServerEvent evt)
|
void |
onConnection(ConnectionEvent evt)
|
void |
shutdown()
Called when the module is shutdown. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MaxConcurrentConnection()
Method Detail |
---|
public boolean init(ModuleContext ctx)
Module
init
in interface Module
public void onConnection(ConnectionEvent evt)
public void onClientDisconnect(ServerEvent evt)
public void shutdown()
Module
shutdown
in interface Module
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |