private final class ServiceDiscoveryManager.LookupCacheImpl.LookupListener extends Object implements RemoteEventListener, ServerProxyTrust
Modifier | Constructor and Description |
---|---|
private |
LookupListener() |
Modifier and Type | Method and Description |
---|---|
(package private) RemoteEventListener |
export() |
TrustVerifier |
getProxyVerifier()
Returns a
TrustVerifier which can be used to verify
that a given proxy to this listener can be trusted. |
void |
notify(RemoteEvent evt)
Notify the listener about an event.
|
RemoteEventListener export() throws ExportException
ExportException
public void notify(RemoteEvent evt) throws UnknownEventException, RemoteException
RemoteEventListener
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.
notify
in interface RemoteEventListener
evt
- the remote event that occurredUnknownEventException
- the recipient does not recognize the
combination of event identifier and event sourceRemoteException
public TrustVerifier getProxyVerifier()
TrustVerifier
which can be used to verify
that a given proxy to this listener can be trusted.getProxyVerifier
in interface ServerProxyTrust
TrustVerifier
that can be used to verify that
a proxy can be trusted as a proxy for the serviceCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.