Class ApnsPushNotificationSenderImpl

java.lang.Object
com.flowable.engage.notification.apns.ApnsPushNotificationSenderImpl
All Implemented Interfaces:
ApnsPushNotificationSender, org.springframework.beans.factory.DisposableBean

public class ApnsPushNotificationSenderImpl
extends java.lang.Object
implements ApnsPushNotificationSender, org.springframework.beans.factory.DisposableBean
Author:
Filip Hrisafov
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected com.turo.pushy.apns.ApnsClient apnsClient  
    protected DeviceService deviceService  
    protected org.slf4j.Logger logger  
  • Constructor Summary

    Constructors 
    Constructor Description
    ApnsPushNotificationSenderImpl​(com.turo.pushy.apns.ApnsClient apnsClient, DeviceService deviceService)  
  • Method Summary

    Modifier and Type Method Description
    void destroy()  
    protected void onCompletedResponse​(com.turo.pushy.apns.util.concurrent.PushNotificationFuture<com.turo.pushy.apns.ApnsPushNotification,​com.turo.pushy.apns.PushNotificationResponse<com.turo.pushy.apns.ApnsPushNotification>> future, java.lang.String deviceId)  
    protected void onFutureSuccess​(com.turo.pushy.apns.util.concurrent.PushNotificationFuture<com.turo.pushy.apns.ApnsPushNotification,​com.turo.pushy.apns.PushNotificationResponse<com.turo.pushy.apns.ApnsPushNotification>> future, java.lang.String deviceId)  
    protected void pushNotificationWasRejected​(com.turo.pushy.apns.PushNotificationResponse<com.turo.pushy.apns.ApnsPushNotification> response, java.lang.String deviceId)  
    void sendNotification​(java.lang.String deviceId, com.turo.pushy.apns.ApnsPushNotification pushNotification)  
    protected void tokenWasInvalid​(com.turo.pushy.apns.PushNotificationResponse<com.turo.pushy.apns.ApnsPushNotification> response, java.lang.String deviceId)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • sendNotification

      public void sendNotification​(java.lang.String deviceId, com.turo.pushy.apns.ApnsPushNotification pushNotification)
      Specified by:
      sendNotification in interface ApnsPushNotificationSender
    • onCompletedResponse

      protected void onCompletedResponse​(com.turo.pushy.apns.util.concurrent.PushNotificationFuture<com.turo.pushy.apns.ApnsPushNotification,​com.turo.pushy.apns.PushNotificationResponse<com.turo.pushy.apns.ApnsPushNotification>> future, java.lang.String deviceId)
    • onFutureSuccess

      protected void onFutureSuccess​(com.turo.pushy.apns.util.concurrent.PushNotificationFuture<com.turo.pushy.apns.ApnsPushNotification,​com.turo.pushy.apns.PushNotificationResponse<com.turo.pushy.apns.ApnsPushNotification>> future, java.lang.String deviceId)
    • pushNotificationWasRejected

      protected void pushNotificationWasRejected​(com.turo.pushy.apns.PushNotificationResponse<com.turo.pushy.apns.ApnsPushNotification> response, java.lang.String deviceId)
    • tokenWasInvalid

      protected void tokenWasInvalid​(com.turo.pushy.apns.PushNotificationResponse<com.turo.pushy.apns.ApnsPushNotification> response, java.lang.String deviceId)
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean