public static interface MUXPool.StrategyHandler
MUXPool
to override the classical built-in strategies.MUXPool
like this:<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
strategy-handler
returns null
, the MUXPool
will fall back to the
defined strategy
(or the default one, if none defined).Modifier and Type | Method and Description |
---|---|
MUX |
getMUX(MUXPool pool,
ISOMsg m,
long maxWait)
If this method returns null, the
MUXPool will fall back to the configured built-in
strategy. |