Overview
This can retrieve the status of listeners that are currently open, or that have been closed. The status of a listener can be retrieved through the listenId provided in the response of theSTART_LISTEN operation.
Request
- Java
- JSON
Response
- Java
- JSON
DlcListenStatusResponse
| Key | Type | Description |
|---|---|---|
| report | ListenReport<E> | Reports of all events that occurred while the listener was open. |
| status | DlcStatus | Overall status of the DLC Operation. |
ListenReport<E>
| Key | Type | Description |
|---|---|---|
| isOpen | boolean | Whether the listener is currently open or closed. |
| startTime | LocalDateTime | The time and date the listener was started. Uses the JVM’s time zone. |
| endTime | LocalDateTime | The time and date the listener was closed. Uses the JVM’s time zone. Will be null for open listeners. |
| events | List<E> | List of events that occurred while the listener was open. The type of event depends on the source. |
Expected event types
The type parameter of theListenReport can vary depending on the type of source being listened on.
File sources: ListenReport<DlcLoadResponse>
When listening on a file source, the listen report will contain DlcLoadResponse events as the listen operation
will perform many LOAD operations.
DlcStatus
A simple enum to capture if the DLC request was executed.
| Key | Description |
|---|---|
| OK | Request was handled successfully. |
| ERROR | Request was not able to be performed correctly. |
How it works
All listen operations are recorded and linked to a uniquelistenId. This ID can then be used to fetch the listener’s
ListenReport<DlcLoadResponse>.