Last active
April 26, 2020 10:42
-
-
Save ndemengel/383f2c70f5f2b36c6f2488c0c8cbe314 to your computer and use it in GitHub Desktop.
Commanq queue: scheduling a command execution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component | |
class ClientCode( | |
@Named(MY_QUEUE_NAME) | |
private val commandScheduler: CommandScheduler | |
) { | |
fun doSomething() { | |
// ... some code ... | |
val transactionId: TransactionId = ... | |
val invoiceId: InvoiceId = ... | |
commandScheduler.schedule(PushTransactionForInvoiceSpec(transactionId, invoiceId)) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment