Interface NotificationEnvelope<T>

Type Parameters:
T - the destination address type
All Superinterfaces:
Cloneable, Comparable<NotificationEnvelope<?>>, Serializable
All Known Implementing Classes:
SMTPEnvelope, VAPIDEnvelope

public interface NotificationEnvelope<T> extends Serializable, Cloneable, Comparable<NotificationEnvelope<?>>
An interface for notification envelopes.
Since:
10.0
Version:
10.0
Author:
Luke
  • Method Details

    • getEndpoint

      T getEndpoint()
      Returns the destination address.
      Returns:
      the address
    • getCreatedOn

      Instant getCreatedOn()
      Returns the envelope creation date.
      Returns:
      the creation date/time
    • getProtocol

      Returns this envelope's notification protocol.
      Returns:
      the Protocol
    • compareTo

      default int compareTo(NotificationEnvelope<?> me)
      Specified by:
      compareTo in interface Comparable<T>