public class WeakDiscoveryListener extends WeakReference<DiscoveryListener> implements DiscoveryListener
LookupDiscoveryManager
.Constructor and Description |
---|
WeakDiscoveryListener(DiscoveryListener listener)
Weak DiscoveryListener constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
discarded(DiscoveryEvent event)
Delegate the notification to the listener.
|
void |
discovered(DiscoveryEvent event)
Delegate the notification to the listener.
|
clear, enqueue, get, isEnqueued
public WeakDiscoveryListener(DiscoveryListener listener)
listener
- the DiscoveryListener reference.public void discarded(DiscoveryEvent event)
discarded
in interface DiscoveryListener
event
- the event that describes the discarded registrarsDiscoveryListener.discarded(net.jini.discovery.DiscoveryEvent)
public void discovered(DiscoveryEvent event)
discovered
in interface DiscoveryListener
event
- the event that describes the discovered registrarsDiscoveryListener.discovered(net.jini.discovery.DiscoveryEvent)
Copyright © GigaSpaces.