差異處
這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
java:apache_camel:throttler:helloworld [2019/03/17 21:56] tony [Library Info] |
java:apache_camel:throttler:helloworld [2023/06/25 09:48] (目前版本) |
||
---|---|---|---|
行 5: | 行 5: | ||
\\ | \\ | ||
我將透過HTTP GET請求/events/{id}做為範例,說明如何使用Throttler。首先介紹這個範例中的兩個RouteBuilder。 | 我將透過HTTP GET請求/events/{id}做為範例,說明如何使用Throttler。首先介紹這個範例中的兩個RouteBuilder。 | ||
+ | \\ | ||
+ | \\ | ||
+ | (程式碼可參考[[https://github.com/frank007love/CamelPractice|link]]) | ||
===== RestRouteBuilder ===== | ===== RestRouteBuilder ===== | ||
REST核心設定集中在這個builder中,它負責宣告用什麼port與component去建立REST服務: | REST核心設定集中在這個builder中,它負責宣告用什麼port與component去建立REST服務: |