public static class PushBase.ChannelSubscriptions
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
PaginatedResult<PushBase.ChannelSubscription> |
list(Param[] params)
Retrieves all push channel subscriptions matching the filter params provided.
|
void |
listAsync(Param[] params,
Callback<AsyncPaginatedResult<PushBase.ChannelSubscription>> callback)
Asynchronously retrieves all push channel subscriptions matching the filter params provided.
|
PaginatedResult<java.lang.String> |
listChannels(Param[] params)
Retrieves all channels with at least one device subscribed to push notifications.
|
void |
listChannelsAsync(Param[] params,
Callback<AsyncPaginatedResult<java.lang.String>> callback)
Asynchronously retrieves all channels with at least one device subscribed to push notifications.
|
protected BasePaginatedQuery.ResultRequest<java.lang.String> |
listChannelsImpl(Param[] params) |
protected BasePaginatedQuery.ResultRequest<PushBase.ChannelSubscription> |
listImpl(Param[] params) |
void |
remove(PushBase.ChannelSubscription subscription)
Unsubscribes a device, or a group of devices sharing the same clientId from receiving push notifications on a channel.
|
void |
removeAsync(PushBase.ChannelSubscription subscription,
CompletionListener listener)
Asynchronously unsubscribes a device,
or a group of devices sharing the same clientId from receiving push notifications on a channel.
|
protected Http.Request<java.lang.Void> |
removeImpl(PushBase.ChannelSubscription subscription) |
void |
removeWhere(Param[] params)
Unsubscribes all devices from receiving push notifications on a channel that match the filter params provided.
|
void |
removeWhereAsync(Param[] params,
CompletionListener listener)
Asynchronously unsubscribes all devices from receiving push notifications on a channel that match the filter params provided.
|
protected Http.Request<java.lang.Void> |
removeWhereImpl(Param[] params) |
PushBase.ChannelSubscription |
save(PushBase.ChannelSubscription subscription)
Subscribes a device, or a group of devices sharing the same clientId to push notifications on a channel.
|
void |
saveAsync(PushBase.ChannelSubscription subscription,
Callback<PushBase.ChannelSubscription> callback)
Asynchronously subscribes a device, or a group of devices sharing the same clientId to push notifications on a channel.
|
protected Http.Request<PushBase.ChannelSubscription> |
saveImpl(PushBase.ChannelSubscription subscription) |
public PushBase.ChannelSubscription save(PushBase.ChannelSubscription subscription) throws AblyException
PushBase.ChannelSubscription object.
Spec: RSH1c3
subscription - A PushBase.ChannelSubscription object.PushBase.ChannelSubscription object describing the new or updated subscriptions.AblyExceptionpublic void saveAsync(PushBase.ChannelSubscription subscription, Callback<PushBase.ChannelSubscription> callback)
PushBase.ChannelSubscription object.
Spec: RSH1c3
subscription - A PushBase.ChannelSubscription object.callback - A callback returning PushBase.ChannelSubscription object describing the new or updated subscriptions.protected Http.Request<PushBase.ChannelSubscription> saveImpl(PushBase.ChannelSubscription subscription)
public PaginatedResult<PushBase.ChannelSubscription> list(Param[] params) throws AblyException
PaginatedResult object, containing an array of PushBase.ChannelSubscription objects.
Spec: RSH1c1
params - An object containing key-value pairs to filter subscriptions by.
Can contain channel, clientId, deviceId and a limit on the number of devices returned, up to 1,000.PaginatedResult object containing an array of PushBase.ChannelSubscription objects.AblyExceptionpublic void listAsync(Param[] params, Callback<AsyncPaginatedResult<PushBase.ChannelSubscription>> callback)
PaginatedResult object, containing an array of PushBase.ChannelSubscription objects.
Spec: RSH1c1
params - An object containing key-value pairs to filter subscriptions by.
Can contain channel, clientId, deviceId and a limit on the number of devices returned, up to 1,000.callback - A callback returning AsyncPaginatedResult object containing an array of PushBase.ChannelSubscription objects.AblyExceptionprotected BasePaginatedQuery.ResultRequest<PushBase.ChannelSubscription> listImpl(Param[] params)
public void remove(PushBase.ChannelSubscription subscription) throws AblyException
Spec: RSH1c4
subscription - A PushBase.ChannelSubscription object.AblyExceptionpublic void removeAsync(PushBase.ChannelSubscription subscription, CompletionListener listener)
Spec: RSH1c4
subscription - A PushBase.ChannelSubscription object.listener - A listener to be notified of success or failure.AblyExceptionprotected Http.Request<java.lang.Void> removeImpl(PushBase.ChannelSubscription subscription)
public void removeWhere(Param[] params) throws AblyException
Spec: RSH1c5
params - An object containing key-value pairs to filter subscriptions by.
Can contain channel, and optionally either clientId or deviceId.AblyExceptionpublic void removeWhereAsync(Param[] params, CompletionListener listener)
Spec: RSH1c5
params - An object containing key-value pairs to filter subscriptions by.
Can contain channel, and optionally either clientId or deviceId.listener - A listener to be notified of success or failure.AblyExceptionprotected Http.Request<java.lang.Void> removeWhereImpl(Param[] params)
public PaginatedResult<java.lang.String> listChannels(Param[] params) throws AblyException
PaginatedResult object, containing an array of channel names.
Spec: RSH1c2
params - An object containing key-value pairs to filter channels by.
Can contain a limit on the number of channels returned, up to 1,000.PaginatedResult object containing an array of channel names.AblyExceptionpublic void listChannelsAsync(Param[] params, Callback<AsyncPaginatedResult<java.lang.String>> callback)
PaginatedResult object, containing an array of channel names.
Spec: RSH1c2
params - An object containing key-value pairs to filter channels by.
Can contain a limit on the number of channels returned, up to 1,000.callback - A AsyncPaginatedResult callback returning object containing an array of channel names.AblyExceptionprotected BasePaginatedQuery.ResultRequest<java.lang.String> listChannelsImpl(Param[] params)