Package com.mxraven.admin.client
Class ListenersClient
java.lang.Object
com.mxraven.admin.client.ListenersClient
Submission and MTA listener collection. Reads and creation return hydrated
Listener entities whose operations and children act on that listener.-
Constructor Summary
ConstructorsConstructorDescriptionListenersClient(AdminClient client, String tenantSlug) Create a client for the listener collection of a tenant. -
Method Summary
Modifier and TypeMethodDescriptioncreate(CreateListenerRequest request) Create a listener.create(Consumer<CreateListenerRequest.Builder> configure) Create a listener from a configured builder.Get a listener by its identifier.list()List all listeners (first page fetched eagerly, remaining pages lazy).Fetch every MTA listener, following cursor pages.Fetch every submission listener, following cursor pages.query()Start a typed, fluent list request.
-
Constructor Details
-
ListenersClient
Create a client for the listener collection of a tenant.- Parameters:
client- underlying admin clienttenantSlug- tenant slug whose listeners are accessed
-
-
Method Details
-
query
Start a typed, fluent list request.- Returns:
- a new listener query
-
list
List all listeners (first page fetched eagerly, remaining pages lazy).- Returns:
- a lazily paginating collection of listeners
- Throws:
IOException- if the first page request fails or is interrupted
-
get
Get a listener by its identifier.- Parameters:
listenerId- listener identifier- Returns:
- the hydrated listener
- Throws:
IOException- if the request fails or is interrupted
-
create
Create a listener from a configured builder.- Parameters:
configure- consumer that configures the request builder- Returns:
- the created listener
- Throws:
IOException- if the request fails or is interrupted
-
create
Create a listener.- Parameters:
request- creation request- Returns:
- the created listener
- Throws:
IOException- if the request fails or is interrupted
-
listMtaListeners
Fetch every MTA listener, following cursor pages.- Returns:
- all MTA listeners
- Throws:
IOException- if a page request fails or is interrupted
-
listSubmissionListeners
Fetch every submission listener, following cursor pages.- Returns:
- all submission listeners
- Throws:
IOException- if a page request fails or is interrupted
-