|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface UserWatcher
Interface implemented by objects that wish to be notified when users arrive in or depart from context.
This notification can be arranged by calling the registerUserWatcher() method on the Context in which one has an interest in the comings and goings of users.
| Method Summary | |
|---|---|
void |
noteUserArrival(User who)
Do whatever you want when somebody arrives. |
void |
noteUserDeparture(User who)
Do whatever you want when somebody leaves. |
| Method Detail |
|---|
void noteUserArrival(User who)
Whenever a user enters a context, the server will call this method on
all objects that have registered an interest in that context via the
context's registerUserWatcher()
method.
who - The user who arrived.void noteUserDeparture(User who)
Whenever a user exits a context, the server will call this method on
all objects that have registered an interest in that context via the
context's registerUserWatcher()
method.
who - The user who departed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||