public interface Notifiable
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
Modifier and Type | Method and Description |
---|---|
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. |
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 notifiableSienaException
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 notifiableSienaException
Siena.subscribe(Pattern,Notifiable)
Copyright © 2005-2011 Antonio Carzaniga.
This documentation is maintained by Antonio Carzaniga