Skip to main content

Overview

This operation will look through all of the open listening operations and stop the ones that match the parameters in the request. This means that listening can be started and stopped via the same request, while only changing the Operation type.

Request

DlcStopListenRequest

KeyRequiredTypeDescription
listenIdYStringThe unique identifier of a listener.

Example:

DlcStopListenRequest.builder()
    .listenId("234890")
    .build();

Response

DlcStopListenResponse

KeyTypeDescription
reportListenReport<E>Reports of all events that occurred while the listener was open.
statusDlcStatusOverall status of the DLC Operation.

ListenReport<E>

KeyTypeDescription
isOpenbooleanWhether the listener is currently open or closed.
startTimeLocalDateTimeThe time and date the listener was started. Uses the JVM’s time zone.
endTimeLocalDateTimeThe time and date the listener was closed. Uses the JVM’s time zone. Will be null for open listeners.
eventsList<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 the ListenReport 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.
KeyDescription
OKRequest was handled successfully.
ERRORRequest was not able to be performed correctly.

How it works

File source types

All listen operations are recorded based on their Topic, Scope and the Source they are operating on. The open listener for the provided scope can then be looked up and closed.