Class LiveNotification

java.lang.Object
com.surrealdb.LiveNotification

public class LiveNotification extends Object
A single notification from a live query (CREATE, UPDATE, or DELETE).
  • Constructor Details

    • LiveNotification

      public LiveNotification(String action, long valuePtr, String queryId)
      Called from native code only.
  • Method Details

    • getAction

      public String getAction()
      The action that caused this notification: "CREATE", "UPDATE", or "DELETE".
    • getValue

      public Value getValue()
      The record value (content) for this notification. May be null when the notification does not include record content (e.g. some server events).
      Returns:
      the record value, or null
    • getQueryId

      public String getQueryId()
      The live query UUID this notification belongs to.