T - The type of resolved address.public final class DefaultServiceDiscovererEvent<T> extends Object implements ServiceDiscovererEvent<T>
ServiceDiscovererEvent.ServiceDiscovererEvent.Status| Constructor and Description |
|---|
DefaultServiceDiscovererEvent(T address,
ServiceDiscovererEvent.Status status)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
T |
address()
Get the resolved address which is the subject of this event.
|
boolean |
equals(Object o) |
int |
hashCode() |
ServiceDiscovererEvent.Status |
status()
Status of the event instructing the ServiceDiscoverer what actions
to take upon the associated address. |
String |
toString() |
public DefaultServiceDiscovererEvent(T address, ServiceDiscovererEvent.Status status)
public T address()
ServiceDiscovererEvent
Note: all subsequent events for the same address override its ServiceDiscovererEvent.status() or any additional meta-data
associated with the address.
address in interface ServiceDiscovererEvent<T>public ServiceDiscovererEvent.Status status()
ServiceDiscovererEventStatus of the event instructing the ServiceDiscoverer what actions
to take upon the associated address.status in interface ServiceDiscovererEvent<T>Status of the associated ServiceDiscovererEvent.address().public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object