Interface java.rmi.examples.chat.ChatClient
All Packages Class Hierarchy This Package Previous Next Index
Interface java.rmi.examples.chat.ChatClient
- public interface ChatClient
- extends Object
- extends Remote
ChatClient is the interface that clients of the chat system
implements. The server invokes the methods in this interface to
notify clients of changes of state in the chat.
-
ASLEEP
- The chater is asleep, e.g., not currently on the page with the applet
-
AWAKE
- The chater is activly connected
-
GONE
- The chatter has gone away.
-
changeAlias(int, String)
- A chater has changed their alias
-
changeState(int, int)
- A chater has changed their state.
-
chaterGone(int)
- A chater has left the conversation
-
messageFrom(int, int, String)
- A new message has arrived from a particular chater
-
newChatter(int, String)
-
A new chater has joined the group
AWAKE
public final static int AWAKE
- The chater is activly connected
ASLEEP
public final static int ASLEEP
- The chater is asleep, e.g., not currently on the page with the applet
GONE
public final static int GONE
- The chatter has gone away.
newChatter
public abstract void newChatter(int id,
String alias) throws RemoteException
- A new chater has joined the group
changeAlias
public abstract void changeAlias(int id,
String newAlias) throws RemoteException, UnknownChatterException
- A chater has changed their alias
changeState
public abstract void changeState(int id,
int newState) throws RemoteException, UnknownChatterException
- A chater has changed their state. The
newState
parameter is one of AWAKE or ASLEEP.
messageFrom
public abstract void messageFrom(int id,
int msgID,
String message) throws RemoteException, UnknownChatterException
- A new message has arrived from a particular chater
chaterGone
public abstract void chaterGone(int id) throws RemoteException
- A chater has left the conversation
All Packages Class Hierarchy This Package Previous Next Index