The @Timeout policy
The @Timeout annotation could be applied to a class or method to make sure that an operation doesn't last forever:
@Timeout(200)
public void operationCouldTimeout() {
...
}
In the preceding example, the operation will be stopped should it last more than 200 ms.
推薦閱讀
- 智慧城市:大數據、互聯網時代的城市治理(第4版)
- 數據通信網絡實踐:基礎知識與交換機技術
- 微商之道
- 物聯網識別技術
- 網絡故障現場處理實踐(第4版)
- Proxmox High Availability
- 電力物聯網工程技術原理與應用
- Mastering TypeScript 3
- 通信原理及MATLAB/Simulink仿真
- 面向5G-Advanced的關鍵技術
- 物聯網與智能家居
- Microsoft Power Platform Enterprise Architecture
- 5G時代的大數據技術架構和關鍵技術詳解
- Python API Development Fundamentals
- 算力網絡:云網融合2.0時代的網絡架構與關鍵技術