Server Smalltalk Guide

SstWorkerManager

Worker-managers are similar to pools, but manage dispatching units of work. Managers maintain a list of worker processes for executing arbitrary blocks. A worker-manager has similar high and low watermarks, controlling the number of workers. If set to strict then blocks will be queued until a worker becomes available, otherwise a worker will be created as needed.

SstWorkerManager conforms to the IuSstStartable interface and thus you must explictly start and stop it. Its operations are the following:

dispatch:
Causes a block to be dispatched to a worker. If no workers are available, the block is queued to be executed when one becomes available.

workerName
Answers the name template given to worker processes.

workerName:
Sets the name template given to worker processes. A ‘%1’ is replaced with the process’ ID.

workerPriority
Answers the priority assigned to new worker processes.

workerPriority:
Sets the priority assigned to new worker processes.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]