public interface UserWatcher
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.
Modifier and Type | Method and Description |
---|---|
void |
noteUserArrival(User who)
Do whatever you want when somebody arrives.
|
void |
noteUserDeparture(User who)
Do whatever you want when somebody leaves.
|
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.Copyright © 2017. All rights reserved.