Interface NotificationPublisher<N>


  • public interface NotificationPublisher<N>
    发布通知。
    • Method Detail

      • publish

        default void publish​(N notification)
        发布通知。
      • publish

        void publish​(N notification,
                     int delay)
        在指定延迟后发布通知。
        Parameters:
        delay - 要延迟的时间,单位:毫秒。