Package com.opencloud.sentinel.charging
Interface ImmediateChargingInstance
-
- All Superinterfaces:
ChargingInstance
public interface ImmediateChargingInstance extends ChargingInstance
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.opencloud.sentinel.charging.ChargingInstance
ChargingInstance.ChargingType, ChargingInstance.Instruction, ChargingInstance.State
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
doDirectDebit(ReservationChargingInstance.CreditResultExecutionPhase phase)
Instructs the core to perform a direct debit and deliver the response CCA to the feature on arrival.void
doRefund(ReservationChargingInstance.CreditResultExecutionPhase phase)
Instructs the core to perform a refund and call the feature if response-CCA arrives-
Methods inherited from interface com.opencloud.sentinel.charging.ChargingInstance
clearInstruction, getChargingState, getChargingType, getName, getPendingChargingInstruction, getPendingReportingReason, getSessionCounters, isCreditCheckInProgress, isSuspended, resume, suspend
-
-
-
-
Method Detail
-
doDirectDebit
void doDirectDebit(ReservationChargingInstance.CreditResultExecutionPhase phase) throws InstructionAlreadyPendingException, CreditCheckAlreadyInProgressException
Instructs the core to perform a direct debit and deliver the response CCA to the feature on arrival.- Throws:
InstructionAlreadyPendingException
- if there is already an instruction pendingCreditCheckAlreadyInProgressException
- if there is already a credit check in progress.
-
doRefund
void doRefund(ReservationChargingInstance.CreditResultExecutionPhase phase) throws InstructionAlreadyPendingException, CreditCheckAlreadyInProgressException
Instructs the core to perform a refund and call the feature if response-CCA arrives- Throws:
InstructionAlreadyPendingException
- if there is already an instruction pendingCreditCheckAlreadyInProgressException
- if there is already a credit check in progress.
-
-