noun
- a design pattern in software engineering that allows controlled creation of multiple named instances of a class
Usage: computing; technical
Examples
- The multiton pattern ensures that only one instance exists for each key.
- Database connections often use a multiton pattern to manage multiple named pools.
- Unlike a singleton, a multiton can have several instances identified by different keys.
- The multiton registry keeps track of all created instances.
- Implementing multiton requires careful thread safety considerations.