All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkiverse.temporal.it.moneyTransfer.shared.AccountActivity Maven / Gradle / Ivy

package io.quarkiverse.temporal.it.moneyTransfer.shared;

import io.temporal.activity.ActivityInterface;
import io.temporal.activity.ActivityMethod;

@ActivityInterface
public interface AccountActivity {
    // Withdraw an amount of money from the source account
    @ActivityMethod
    void withdraw(String accountId, String referenceId, int amount);

    // Deposit an amount of money into the destination account
    @ActivityMethod
    void deposit(String accountId, String referenceId, int amount);

    // Compensate a failed deposit by refunding to the original account
    @ActivityMethod
    void refund(String accountId, String referenceId, int amount);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy