|
Siena (v.1.5.5) API documentation | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Notifiable
interface implemented by event consumers.
Every object that wants to receive event notifications from
Siena must implement this interface. Siena calls
notify(Notification)
on a subscriber to notify a
single event to it. Siena calls notify(Notification
[])
to notify a sequence of events.
Example:
class SimpleSubscriber implements Notifiable {
public void notify(Notification e) {
System.out.println("I got this notification: " + e.toString());
}
public void notify(Notification s[]) {
// I never subscribe for patterns anyway.
}
}
Notification
,
Siena
Method Summary | |
---|---|
void |
notify(Notification n)
sends a Notification to this Notifable
Since version 1.0.1 of the Siena API it is safe to modify the
Notification object received through this method. |
void |
notify(Notification[] s)
sends a sequence of Notification s to this
Notifable
Since version 1.0.1 of the Siena API it is safe to modify the
Notification objects received through this method. |
Method Detail |
---|
void notify(Notification n) throws SienaException
Notification
to this Notifable
Since version 1.0.1 of the Siena API it is safe to modify the
Notification object received through this method. Note that:
n
- notification passed to the notifiable
SienaException
Siena.subscribe(Filter,Notifiable)
void notify(Notification[] s) throws SienaException
Notification
s to this
Notifable
Since version 1.0.1 of the Siena API it is safe to modify the
Notification objects received through this method. Please
read the notes in the above documentation of notify(Notification)
, which apply to this method as well.
s
- sequence of notifications passed to the notifiable
SienaException
Siena.subscribe(Pattern,Notifiable)
|
Siena (v.1.5.5) API documentation | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |