Interface PayloadVisitor<C>

Type Parameters:
C - type of the contextual value supplied to each visit
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface PayloadVisitor<C>
Callback completing with the list that replaces payloads; complete with the same list to leave them unchanged. Asynchronous so I/O-backed implementations (e.g. external storage) compose without blocking a thread per call; a synchronous one returns CompletableFuture.completedFuture(U).

For a single-payload field the visitor must complete with exactly one payload. With concurrency greater than one, several visits may be in flight at once, so implementations must be thread-safe.

  • Method Summary

    Modifier and Type
    Method
    Description
    CompletableFuture<List<io.temporal.api.common.v1.Payload>>
    visit(C context, List<io.temporal.api.common.v1.Payload> payloads)
     
  • Method Details

    • visit

      CompletableFuture<List<io.temporal.api.common.v1.Payload>> visit(C context, List<io.temporal.api.common.v1.Payload> payloads)