Class PushNotificationFuture<P extends ApnsPushNotification,​V>

java.lang.Object
java.util.concurrent.CompletableFuture<V>
com.eatthepath.pushy.apns.util.concurrent.PushNotificationFuture<P,​V>
Type Parameters:
P - the type of push notification sent
V - the type of value returned by the operation
All Implemented Interfaces:
CompletionStage<V>, Future<V>

public class PushNotificationFuture<P extends ApnsPushNotification,​V>
extends CompletableFuture<V>
A push notification future represents the result an asynchronous operation on a ApnsPushNotification.
Author:
Jon Chambers
  • Constructor Details

    • PushNotificationFuture

      public PushNotificationFuture​(P pushNotification)
  • Method Details

    • getPushNotification

      public P getPushNotification()
      Returns the push notification to which the operation represented by this future applies.
      Returns:
      the push notification to which the operation represented by this future applies