#
vincentlu
昨天 501c7eaab236314f61a9064a237b049966a66818
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package com.zy.acs.manager.core.service;
 
import com.zy.acs.manager.manager.entity.Guarantee;
 
import java.time.LocalDateTime;
 
/**
 * Runtime guarantee orchestration entry.
 */
public interface GuaranteeRuntimeService {
 
    /**
     * Lead time entrance: make sure enough vehicles can reach the target window.
     */
    void prepare(Guarantee plan, LocalDateTime targetTime);
 
    /**
     * Lock stage: restrict non-essential dispatching for reserve vehicles.
     */
    void lock(Guarantee plan, LocalDateTime targetTime);
 
    /**
     * Executed repeatedly during the guarantee window to keep SLA.
     */
    void checkWindow(Guarantee plan, LocalDateTime targetTime);
 
    /**
     * Called once after the window ends to release state/records.
     */
    void finish(Guarantee plan, LocalDateTime targetTime);
}