Date: Thu, 28 Mar 2024 18:05:37 +0000 (UTC) Message-ID: <1749687133.35.1711649137727@cfcfb13884c4> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_34_1888931029.1711649137727" ------=_Part_34_1888931029.1711649137727 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
OpenHub allows to switch to stopping mode where no new asyn= chronous and/or synchronous requests will be processed, only current a= synchronous messages will be finished (messages in states IN_QUEUE= , PROCESSING and WAITING_FOR_RES).
Synchronous requests which should reject incoming calls are recogni= zed by input URI. This URI is identified by regular expression defined in t= he property ohf.uri.inputPattern.
If OpenHub rejects incoming request then exception org.openhubf= ramework.openhub.api.exception.StoppingException is thrown.
Technical implementation:
When route starts with specified input URI then HandleMessagePolicy<= /em> is created. When node is stopped then this policy throws an exception.=
For getting information about route type (input, output etc.) use Ro= udeDefinitionService. Default implementation of this service searchs r= oute type in all implementations RouteTypeResolver.
This functionality is available for users in admin GUI.= p>