Class LocalActivityArguments

java.lang.Object
io.temporal.internal.activity.LocalActivityArguments

public final class LocalActivityArguments extends Object
A scheduling-time snapshot that is never exposed to an activity attempt.
  • Method Details

    • capture

      @Nullable public static LocalActivityArguments capture(@Nullable Object[] arguments)
      Returns a snapshot only when the entire argument list supports copying. Otherwise, the caller must use the data converter for the complete list to preserve its batch conversion semantics.
    • copy

      public Object[] copy()
      Returns independent arguments for each attempt, including retries after a workflow timer.
    • size

      public int size()
    • copy

      public Object copy(int index)
    • canCopyTo

      public boolean canCopyTo(Class<?>[] parameterTypes, Type[] genericTypes)
    • canCopyTo

      public boolean canCopyTo(int index, Class<?> type, Type genericType)
      Erased generic types and different target classes require the converter's interpretation.
    • toPayloads

      public Optional<io.temporal.api.common.v1.Payloads> toPayloads(DataConverter converter)
      Preserves conversion behavior for untyped calls with different argument types or counts.