ActorRequestFactory

public class ActorRequestFactory

A factory for various requests fired from the client-side by an actor.

Constructors

Link copied to clipboard

Types

Link copied to clipboard
public class Builder
A builder for ActorRequestFactory.

Functions

Link copied to clipboard
public UserId actor()
Obtains the ID of the user on behalf of whom the requests are created.
Link copied to clipboard
Creates an instance of CommandFactory based on configuration of this ActorRequestFactory instance.
Link copied to clipboard
protected CommandContext createCommandContext()
Creates new CommandContext.
Link copied to clipboard
public static ActorRequestFactory fromContext(ActorContext actorContext)
Creates an instance by the passed ActorContext.
Link copied to clipboard
public final ActorContext newActorContext()
Creates an actor context based on the factory properties.
Link copied to clipboard
Creates a builder for a new request factory.
Link copied to clipboard
Creates an instance of QueryFactory based on configuration of this ActorRequestFactory instance.
Link copied to clipboard
public ActorRequestFactory switchTimeZone(ZoneId zoneId)
Creates a copy of this factory placed at a new time zone with the passed ID.
public ActorRequestFactory switchTimeZone(ZoneOffset zoneOffset, ZoneId zoneId)
Creates a copy of this factory placed at a new time zone with the passed offset and ID.
Link copied to clipboard
public TenantId tenantId()
Obtains the ID of the tenant to which the actor belongs or null for single-tenant execution context.
Link copied to clipboard
Creates an instance of TopicFactory based on configuration of this ActorRequestFactory instance.
Link copied to clipboard
public ZoneId zoneId()
Obtains the ID of the time zone in which the actor works.
Link copied to clipboard
public ZoneOffset zoneOffset()
Obtains the offset of the time zone in which the actor works.