The call to notify is synchronous to allow the party making the call to know if the call succeeded. However, it is not part of the semantics of the call that the notification return can be delayed while the recipient of the call reacts to the occurrence of the event. Simply put, the best strategy on the part of the recipient is to note the occurrence in some way and then return from the notify method as quickly as possible.
UnknownEventException is thrown when the recipient does not recognize the combination of the event identifier and the event source as something in which it is interested. Throwing this exception has the effect of asking the sender to not send further notifications of this kind of event from this source in the future. @param theEvent the remote event that occurred @throws UnknownEventException the recipient does not recognize thecombination of event identifier and event source @throws java.rmi.RemoteException
RemoteEventthat includes the
handbackobject. Matching is done as for
read. @param tmpl The template used for matching. Matching isdone against
nullfields being wildcards ("match anything") other fields being values ("match exactly on the serialized form"). @param txn The transaction (if any) under which to work. @param listener The remote event listener to notify. @param lease the requested lease time, in milliseconds @param handback An object to send to the listener as part of the event notification. @return the event registration to the the registrant @throws TransactionException if a transaction error occurs @throws RemoteException if a communication error occurs @throws IllegalArgumentException if the lease time requested is not Lease.ANY and is negative @see #read @see net.jini.core.event.EventRegistration
The Observable indicates that its state has changed. The Observer must inspect the Observable to detect what exactly has changed.