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)
-
Field Details
-
logger
protected final org.slf4j.Logger logger -
apnsClient
protected final com.turo.pushy.apns.ApnsClient apnsClient -
deviceService
-
-
Constructor Details
-
ApnsPushNotificationSenderImpl
public ApnsPushNotificationSenderImpl(com.turo.pushy.apns.ApnsClient apnsClient, DeviceService deviceService)
-
-
Method Details
-
sendNotification
public void sendNotification(java.lang.String deviceId, com.turo.pushy.apns.ApnsPushNotification pushNotification)- Specified by:
sendNotification
in interfaceApnsPushNotificationSender
-
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 interfaceorg.springframework.beans.factory.DisposableBean
-