Added SessionObserver which is a pared down version of ClientObserver that

only reports logon and logoff.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1117 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-03-11 19:51:25 +00:00
parent b7527ae421
commit 1d956214dd
6 changed files with 70 additions and 103 deletions
@@ -0,0 +1,32 @@
//
// $Id: SessionObserver.java,v 1.1 2002/03/11 19:51:25 mdb Exp $
package com.threerings.presents.client;
/**
* A session observer is registered with the client instance to be
* notified when the client establishes and ends their session with the
* server.
*
* <p> These callbacks happen on the client thread and should therefore
* not be used to perform any complex action or do much more than relay
* the signal to some other thread (like the AWT thread) to act more fully
* on the notice.
*
* @see ClientObserver
*/
public interface SessionObserver
{
/**
* Called after the client successfully connected to and authenticated
* with the server. The entire object system is up and running by the
* time this method is called.
*/
public void clientDidLogon (Client client);
/**
* Called after the client has been logged off of the server and has
* disconnected.
*/
public void clientDidLogoff (Client client);
}