Closed barspi closed 1 year ago
A new feature to override the strategy of a MUXPool with a handler class. The handler must implement interface MUXPoolStrategyHandler
MUXPool
interface MUXPoolStrategyHandler
Example
<mux class="org.jpos.q2.iso.MUXPool" logger="Q2" name="my-pool"> <muxes>mux1 mux2 mux3</muxes> <strategy>round-robin</strategy> <strategy-handler class="xxx.yyy.MyPoolStrategy"> <!-- some config here --> </strategy-handler> </mux>
If the handler returns null, the MUXPool will fall back to its configured [built-in] <strategy>.
null
<strategy>
(the first 3 commits are mostly cleanup; the last commit has the real feature addition)
A new feature to override the strategy of a
MUXPool
with a handler class. The handler must implementinterface MUXPoolStrategyHandler
Example
If the handler returns
null
, theMUXPool
will fall back to its configured [built-in]<strategy>
.(the first 3 commits are mostly cleanup; the last commit has the real feature addition)