class Puma::ServerPluginControl


settings without direct access to the server’s internal state.
allowing plugins to safely modify server configuration and thread pool
This class acts as a facade between plugins and the Puma server,
interact with and manage server settings dynamically.
ServerPluginControl provides a control interface for server plugins to

def initialize(server)

def initialize(server)
  @server = server
end

def max_threads

Returns the maximum number of threads in the thread pool.
def max_threads
  @server.max_threads
end

def min_threads

Returns the minimum number of threads in the thread pool.
def min_threads
  @server.min_threads
end

def update_thread_pool_min_max(min: max_threads, max: min_threads)

Other tags:
    See: Puma::Server#update_thread_pool_min_max -
def update_thread_pool_min_max(min: max_threads, max: min_threads)
  @server.update_thread_pool_min_max(min: min, max: max)
end