Interface ReservationService
- All Known Implementing Classes:
ReservationServiceImpl
public interface ReservationService
A ReservationService manages reservations of
TransportUnit
s.- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
acknowledgeReservation
(@NotBlank String reservationId, @NotBlank String acknowledgeId) Acknowledge a previously set reservation on aTransportUnit
.void
saveReservation
(@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 noTransportUnit
is reserved with thereservationId
the implementation might silently return without further action.- Parameters:
reservationId
- The previously set reservationIdacknowledgeId
- The acknowledgeId to replace the reservationId with
-