com.threerings.presents.server
Interface PresentsSession.UserChangeListener

Enclosing class:
PresentsSession

public static interface PresentsSession.UserChangeListener

Used by PresentsSession.setUsername(com.threerings.util.Name, com.threerings.presents.server.PresentsSession.UserChangeListener) to report success or failure.


Method Summary
 void changeCompleted(ClientObject newObj)
          Called when the user change is completed, the old client object is destroyed and all updates are committed.
 void changeFailed(Exception cause)
          Called if some failure occurs during the user change process.
 void changeReported(ClientObject newObji, ResultListener<Void> rl)
          Called when the new client object has been resolved and the new client object reported to the client, but the old one has not yet been destroyed.
 

Method Detail

changeReported

void changeReported(ClientObject newObji,
                    ResultListener<Void> rl)
Called when the new client object has been resolved and the new client object reported to the client, but the old one has not yet been destroyed. Any events delivered on this callback to the old client object will be delivered.

Parameters:
rl - when this method is finished with its business and the old client object can be destroyed, the result listener should be called.

changeCompleted

void changeCompleted(ClientObject newObj)
Called when the user change is completed, the old client object is destroyed and all updates are committed.


changeFailed

void changeFailed(Exception cause)
Called if some failure occurs during the user change process.