Interface PushChannelProps.IReplyListener

Enclosing class:
PushChannelProps
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface PushChannelProps.IReplyListener
The listener of a request's outcome: called ONCE, on the connection's thread for a reply and on the timer's thread for a deadline, never on a session worker - the caller posts.
Author:
Christopher Mindus
  • Method Details

    • onReply

      void onReply(PropCnr params, PushNotificationException failure)
      Called with the outcome.
      Parameters:
      params - The reply's parameters when the client answered ok, otherwise the parameters of the failed reply, or null for a deadline.
      failure - Null when the client answered ok; otherwise the failure, its reason the client's PushChannelProps.P_REASON or timeout at the deadline.