package extensions
- Alphabetic
- Public
- Protected
Value Members
- object AkkaLocationExt
This project defines the basic classes and traits for the Command Service.
This project defines the basic classes and traits for the Command Service.
Related projects are: - csw-messages:
- framework:
Important classes in this project are:
- csw.command.api.scaladsl.CommandService
This class wraps the csw.location.api.models.AkkaLocation and provides helpers to send commands to component actor extracted from provided location. Normal component writers workflow would be to first resolve component using location service and then create CommandService instance using resolved location.
Using this instance, you can Submit Command/Commands to other component or query for command result or subscribe for long running command result.
When you have multiple commands targeted to multiple components then you can use ConfigDistributor. Using CommandDistributor utility you can send all these commands in one go and get aggregated response.
Complete guide of usage of different API's provided by CommandService is available at: https://tmtsoftware.github.io/csw/command.html