T
- The type of resolved address.public final class DefaultServiceDiscovererEvent<T> extends java.lang.Object implements ServiceDiscovererEvent<T>
ServiceDiscovererEvent
.Constructor and Description |
---|
DefaultServiceDiscovererEvent(T address,
boolean available)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
T |
address()
Get the resolved address which is the subject of this event.
|
boolean |
isAvailable()
Determine if
ServiceDiscovererEvent.address() is now available or unavailable. |
java.lang.String |
toString() |
public T address()
ServiceDiscovererEvent
address
in interface ServiceDiscovererEvent<T>
public boolean isAvailable()
ServiceDiscovererEvent
ServiceDiscovererEvent.address()
is now available or unavailable.isAvailable
in interface ServiceDiscovererEvent<T>
true
if ServiceDiscovererEvent.address()
is now available or false if the ServiceDiscovererEvent.address()
is now
unavailable.public java.lang.String toString()
toString
in class java.lang.Object