EndpointEvent objects are delivered to all registered
EndpointEventListener services where the EndpointDescription
properties match one of the filters specified in the
EndpointEventListener#ENDPOINT_LISTENER_SCOPE registration properties
of the Endpoint Event Listener.
A type code is used to identify the type of event. The following event types are defined:
Additional event types may be defined in the future.
EndpointEventListener
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ADDED
An endpoint has been added. |
| private final EndpointDescription | endpoint
Reference to the associated endpoint description. |
| public static final int | MODIFIED
The properties of an endpoint have been modified. |
| public static final int | MODIFIED_ENDMATCH
The properties of an endpoint have been modified and the new properties no longer match the listener's filter. |
| public static final int | REMOVED
An endpoint has been removed. |
| private final int | type
Type of the event. |
| Access | Constructor and Description |
|---|---|
| public | EndpointEvent(int
The event type. See type, EndpointDescription getType().The endpoint associated with the event. endpoint)Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| public EndpointDescription | Returns: The endpoint associated with the event.Return the endpoint associated with this event. |
| public int |
| ADDED | back to summary |
|---|---|
| public static final int ADDED An endpoint has been added.
This | |
| endpoint | back to summary |
|---|---|
| private final EndpointDescription endpoint Reference to the associated endpoint description. | |
| MODIFIED | back to summary |
|---|---|
| public static final int MODIFIED The properties of an endpoint have been modified.
This | |
| MODIFIED_ENDMATCH | back to summary |
|---|---|
| public static final int MODIFIED_ENDMATCH The properties of an endpoint have been modified and the new properties no longer match the listener's filter.
This | |
| REMOVED | back to summary |
|---|---|
| public static final int REMOVED An endpoint has been removed.
This | |
| type | back to summary |
|---|---|
| private final int type Type of the event. | |
| EndpointEvent | back to summary |
|---|---|
| public EndpointEvent(int type, EndpointDescription endpoint) Constructs a
| |
| getEndpoint | back to summary |
|---|---|
| public EndpointDescription getEndpoint() Return the endpoint associated with this event.
| |
| getType | back to summary |
|---|---|
| public int getType() Return the type of this event. The type values are:
| |