Class RewardEconomyGrantHandler

java.lang.Object
com.cotani.reward.integration.RewardEconomyGrantHandler
All Implemented Interfaces:
com.cotani.reward.api.RewardGrantHandler

public final class RewardEconomyGrantHandler extends Object implements com.cotani.reward.api.RewardGrantHandler
Settles CurrencyGrants through the idempotent Cotani economy API.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.cotani.reward.api.RewardGrantHandler

    com.cotani.reward.api.RewardGrantHandler.RewardSettlementContext
  • Constructor Summary

    Constructors
    Constructor
    Description
    RewardEconomyGrantHandler(com.cotani.economy.EconomyService economyService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    settleAsync(com.cotani.reward.api.RewardGrantHandler.RewardSettlementContext context, com.cotani.reward.api.RewardGrant grant)
     
    boolean
    supports(com.cotani.reward.api.RewardGrant grant)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RewardEconomyGrantHandler

      public RewardEconomyGrantHandler(com.cotani.economy.EconomyService economyService)
  • Method Details

    • supports

      public boolean supports(com.cotani.reward.api.RewardGrant grant)
      Specified by:
      supports in interface com.cotani.reward.api.RewardGrantHandler
    • settleAsync

      public CompletionStage<Void> settleAsync(com.cotani.reward.api.RewardGrantHandler.RewardSettlementContext context, com.cotani.reward.api.RewardGrant grant)
      Specified by:
      settleAsync in interface com.cotani.reward.api.RewardGrantHandler