switchTimeZone

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.

Use this method for obtaining new request factory as the user moves to a new location.

Return

new factory at the new time zone

Parameters

zoneOffset

the offset of the new time zone

zoneId

the ID of the new time zone


public ActorRequestFactory switchTimeZone(ZoneId zoneId)

Creates a copy of this factory placed at a new time zone with the passed ID.

The zone offset is calculated using the current time.

Return

new factory at the new time zone

Parameters

zoneId

the ID of the new time zone