org.jdesktop.wonderland.server
Interface UserListener

All Superinterfaces:
com.sun.sgs.app.ManagedObject, java.io.Serializable

public interface UserListener
extends java.io.Serializable, com.sun.sgs.app.ManagedObject

Interface for listening for logout notifications.

Author:
paulby

Method Summary
 void userLoggedIn(WonderlandClientID clientID, com.sun.sgs.app.ManagedReference<UserMO> userRef)
          Notification that a client has logged in.
 void userLoggedOut(WonderlandClientID clientID, com.sun.sgs.app.ManagedReference<UserMO> userRef, com.sun.sgs.app.ManagedReference<java.util.Queue<com.sun.sgs.app.Task>> logoutTasksRef)
          Notification that a client has logged out.
 

Method Detail

userLoggedIn

void userLoggedIn(WonderlandClientID clientID,
                  com.sun.sgs.app.ManagedReference<UserMO> userRef)
Notification that a client has logged in.

Parameters:
clientID - of the client that has logged in
userRef - a reference to the user who logged in.

userLoggedOut

void userLoggedOut(WonderlandClientID clientID,
                   com.sun.sgs.app.ManagedReference<UserMO> userRef,
                   com.sun.sgs.app.ManagedReference<java.util.Queue<com.sun.sgs.app.Task>> logoutTasksRef)
Notification that a client has logged out.

Parameters:
clientID - of the client that has logged out
userRef - a reference to the user who logged out
logoutTasksRef - a reference to a queue of tasks to be executed before the logout is completed


Open Wonderland - http://openwonderland.org