程序包 com.walker.push

接口 PushManager

所有已知实现类:
AbstractPushManager, AsyncPushManager

public interface PushManager
推送管理器定义,负责推送处理,外部调用该对象。
作者:
时克英
  • 方法详细资料

    • register

      void register(Pushable pushable)
    • push

      PushResult push(Notification notification, String pushableId)
      推送通知,当指定了推送者id时,优先使用。
      参数:
      notification -
      pushableId - 指定的推送者id,只有同一个通道存在多个实现时可用。
      返回:
    • pushSms

      PushResult pushSms(Notification notification)
      推送短信接口单独定义,因为平台业务中需要重新实现,包装。
      参数:
      notification -
      返回:
    • push

    • addStrategy

      void addStrategy(Strategy strategy)
    • getPushList

      List<Pushable> getPushList()
      返回已注册的推送对象集合。
      返回:
    • getPushList

      List<Pushable> getPushList(NotificationChannel channel)
      根据通道类型,返回该类型下推送对象(集合),可能会存在多个。
      参数:
      channel -
      返回:
    • getPushObject

      Pushable getPushObject(String id)
      根据索引值,获取推送者对象。
      参数:
      id - 推送对象id
      返回:
    • isMessageParallel

      boolean isMessageParallel()
      对于普通消息推送,存在多通道时,是否支持并行(全部推送),
      如果为否,则表示:只要一个通道完成即可。
      返回:
    • getMessageChannelNames

      List<String> getMessageChannelNames()
      返回普通消息,推送的配置的通道索引集合。
      返回:
    • setAsyncListener

      void setAsyncListener(PushStatusListener listener)
      设置异步推送者需要的监听器。
      参数:
      listener -