Interface ReservationService

All Known Implementing Classes:
ReservationServiceImpl

public interface ReservationService
A ReservationService manages reservations of TransportUnits.
Author:
Heiko Scherrer
  • Method Details

    • saveReservation

      void saveReservation(@NotNull @NotNull TransportUnitReservation reservation)
      Parameters:
      reservation - The instance to create or update
    • acknowledgeReservation

      void acknowledgeReservation(@NotBlank @NotBlank String reservationId, @NotBlank @NotBlank String acknowledgeId)
      Acknowledge a previously set reservation on a TransportUnit. If no TransportUnit is reserved with the reservationId the implementation might silently return without further action.
      Parameters:
      reservationId - The previously set reservationId
      acknowledgeId - The acknowledgeId to replace the reservationId with