Class Notification<T>

java.lang.Object
org.oddjob.remote.Notification<T>
All Implemented Interfaces:
Serializable

public class Notification<T> extends Object implements Serializable
A Notification.
See Also:
  • Constructor Details

    • Notification

      public Notification(long remoteId, NotificationType<T> type, long sequence)
    • Notification

      public Notification(long remoteId, NotificationType<T> type, long sequence, T data)
      Create a notification.
      Parameters:
      remoteId - The remote id of the thing emitting the notification.
      type - The type of notification.
      sequence - The sequence number.
      data - Any user data. May be null.
  • Method Details

    • getRemoteId

      public long getRemoteId()
    • getType

      public NotificationType<T> getType()
    • getSequence

      public long getSequence()
    • getData

      public T getData()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object