withReservationTtl function

Option withReservationTtl(
  1. int reservationTtl
)

WithReservationTtl sets the time-to-live for reservations in seconds.

Implementation

Option withReservationTtl(int reservationTtl) {
  return (options) {
    options._resources = Resources(
      maxReservations: options._resources.maxReservations,
      maxConnections: options._resources.maxConnections,
      reservationTtl: reservationTtl,
      connectionDuration: options._resources.connectionDuration,
      connectionData: options._resources.connectionData,
    );
  };
}