Class MaxClients

  extended by net.user1.union.module.MaxClients
All Implemented Interfaces:

public class MaxClients
extends java.lang.Object
implements Module

A module that only allows a configurable number of clients to be connected to the server at the same time.

Constructor Summary
Method Summary
 boolean init(ModuleContext ctx)
          Called when the module is initialized.
 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 MaxClients()
Method Detail


public boolean init(ModuleContext ctx)
Description copied from interface: Module
Called when the module is initialized. Use this method to perform any custom initialization in the module code. If the module code cannot perform initialization successfully then this method should return false which will cause the room to not be deployed to the server.

Specified by:
init in interface Module
false if the module failed to initialize, otherwise true.


public void onConnection(ConnectionEvent evt)


public void shutdown()
Description copied from interface: Module
Called when the module is shutdown. Use this method to cleanup any resources created by the module.

Specified by:
shutdown in interface Module

Copyright USER1 Subsystems Corporation - Tue Jan 28 2014, 05:05 PM -0500