Class Target

java.lang.Object
dev.restate.sdk.common.Target

public final class Target extends Object
Represents an invocation target.
  • Method Details

    • virtualObject

      public static Target virtualObject(String name, String key, String handler)
    • workflow

      public static Target workflow(String name, String key, String handler)
    • service

      public static Target service(String name, String handler)
    • getService

      public String getService()
    • getHandler

      public String getHandler()
    • getKey

      public @Nullable String getKey()
      Returns:
      the virtual object/workflow key. Null if the target is a regular service.
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object