• Method to iterate through connected clients (IApplicationInstance.getClient)

    The following code example illustrates a method for iterating through all the clients connected to an application instance.

    List<IClient> clients = appInstance.getClients();
    Iterator<IClient> iter = clients.iterator();
    while(iter.hasNext())
    {
    	IClient client = iter.next();
    	if (!client.isConnected())
    		continue;
    	// do work here
    }

    Originally Published: 10-03-2010.