Interface ReservationService
- All Known Implementing Classes:
ReservationServiceImpl
public interface ReservationService
A ReservationService manages reservations of
TransportUnits.- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescriptionvoidacknowledgeReservation(@NotBlank String reservationId, @NotBlank String acknowledgeId) Acknowledge a previously set reservation on aTransportUnit.voidsaveReservation(@NotNull TransportUnitReservation reservation) Save aTransportUnitReservation.
-
Method Details
-
saveReservation
Save aTransportUnitReservation.- 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 aTransportUnit. If noTransportUnitis reserved with thereservationIdthe implementation might silently return without further action.- Parameters:
reservationId- The previously set reservationIdacknowledgeId- The acknowledgeId to replace the reservationId with
-