withMaxReservations function
WithMaxReservations sets the maximum number of concurrent reservations.
Implementation
Option withMaxReservations(int maxReservations) {
return (options) {
options._resources = Resources(
maxReservations: maxReservations,
maxConnections: options._resources.maxConnections,
reservationTtl: options._resources.reservationTtl,
connectionDuration: options._resources.connectionDuration,
connectionData: options._resources.connectionData,
);
};
}