程序包 com.walker.push
类 AbstractPushManager
java.lang.Object
com.walker.push.AbstractPushManager
- 所有已实现的接口:
PushManager
- 直接已知子类:
AsyncPushManager
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddStrategy(Strategy strategy) protected PushStatusListener返回普通消息,推送的配置的通道索引集合。返回已注册的推送对象集合。getPushList(NotificationChannel channel) 根据通道类型,返回该类型下推送对象(集合),可能会存在多个。getPushObject(String id) 根据索引值,获取推送者对象。protected PushResultinvokePush(Pushable pushable, Notification notification) boolean对于普通消息推送,存在多通道时,是否支持并行(全部推送),
如果为否,则表示:只要一个通道完成即可。protected abstract voidpersistent(Notification notification, List<String> successReceiverList, NotificationChannel channel) 持久化保存推送数据(到数据库)protected abstract voidpersistentFailed(Notification notification, List<String> failedList, NotificationChannel channel) 持久化推送失败的记录push(Notification notification, String pushableId) 推送通知,当指定了推送者id时,优先使用。push(List<Notification> list) protected PushResultpushOnce(List<Pushable> pushableList, Notification notification) 一次完整推送调用,默认同步实现,子类可以使用异步方式。voidvoidsetAsyncListener(PushStatusListener listener) 设置异步推送者需要的监听器。voidsetMessageChannelNames(List<String> messageChannelNames) voidsetMessageParallel(boolean messageParallel) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.walker.push.PushManager
pushSms
-
字段详细资料
-
logger
protected final transient org.slf4j.Logger logger
-
-
构造器详细资料
-
AbstractPushManager
public AbstractPushManager()
-
-
方法详细资料
-
register
- 指定者:
register在接口中PushManager
-
push
从接口复制的说明:PushManager推送通知,当指定了推送者id时,优先使用。- 指定者:
push在接口中PushManagerpushableId- 指定的推送者id,只有同一个通道存在多个实现时可用。- 返回:
-
pushOnce
protected PushResult pushOnce(List<Pushable> pushableList, Notification notification) throws PushException 一次完整推送调用,默认同步实现,子类可以使用异步方式。- 参数:
pushableList-notification-- 返回:
- 抛出:
PushException
-
invokePush
- 抛出:
PushException
-
push
- 指定者:
push在接口中PushManager
-
addStrategy
- 指定者:
addStrategy在接口中PushManager
-
getPushList
从接口复制的说明:PushManager返回已注册的推送对象集合。- 指定者:
getPushList在接口中PushManager- 返回:
-
getPushList
从接口复制的说明:PushManager根据通道类型,返回该类型下推送对象(集合),可能会存在多个。- 指定者:
getPushList在接口中PushManager- 返回:
-
getPushObject
从接口复制的说明:PushManager根据索引值,获取推送者对象。- 指定者:
getPushObject在接口中PushManager- 参数:
id- 推送对象id- 返回:
-
setAsyncListener
从接口复制的说明:PushManager设置异步推送者需要的监听器。- 指定者:
setAsyncListener在接口中PushManager
-
persistent
protected abstract void persistent(Notification notification, List<String> successReceiverList, NotificationChannel channel) 持久化保存推送数据(到数据库)- 参数:
notification- 通知内容successReceiverList- 推送成功的用户集合
-
persistentFailed
protected abstract void persistentFailed(Notification notification, List<String> failedList, NotificationChannel channel) 持久化推送失败的记录- 参数:
notification-failedList-
-
isMessageParallel
public boolean isMessageParallel()从接口复制的说明:PushManager对于普通消息推送,存在多通道时,是否支持并行(全部推送),
如果为否,则表示:只要一个通道完成即可。- 指定者:
isMessageParallel在接口中PushManager- 返回:
-
getMessageChannelNames
从接口复制的说明:PushManager返回普通消息,推送的配置的通道索引集合。- 指定者:
getMessageChannelNames在接口中PushManager- 返回:
-
setMessageParallel
public void setMessageParallel(boolean messageParallel) -
setMessageChannelNames
-
getAsyncListener
-