Package org.jpos.q2.iso
Interface MUXPool.StrategyHandler
-
- Enclosing class:
- MUXPool
public static interface MUXPool.StrategyHandler
A class implementing this interface can be added to aMUXPool
to override the classical built-in strategies.
It could be added to aMUXPool
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 thestrategy-handler
returnsnull
, theMUXPool
will fall back to the definedstrategy
(or the default one, if none defined).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MUX
getMUX(MUXPool pool, ISOMsg m, long maxWait)
If this method returns null, theMUXPool
will fall back to the configured built-in strategy.
-