InRouteConfigurator¶
-
public interface
InRouteConfiguratorextends RouteConfigurator<InConnector>¶ Implementing classes provide ingoing communication routes for
rsb.Participants. The methodshandlerAdded(Handler,boolean)andhandlerRemoved(Handler,boolean)need to be callable before and after callingactivate().- Author
jwienke
Methods¶
filterAdded¶
filterRemoved¶
handlerAdded¶
-
void
handlerAdded(Handler handler, boolean wait)¶ Called in case a
Handlerwas added to the participant for which the route is being configured. This method should incorporate that handler into the route.- Parameters
handler – the added handler
wait – if
true, this method must wait with returning until the handler is fully active and can receive the next event. Otherwise it might return earlier.
- Throws
InterruptedException – interrupted while waiting for the handler to be fully removed
handlerRemoved¶
-
boolean
handlerRemoved(Handler handler, boolean wait)¶ Called in case a
Handlerwas remove from the participant for which the route is being configured. This method should remove that handler from the route.- Parameters
handler – the removed handler
wait – if
true, this method must wait with returning until the handler is fully removed and will not receive any more events.. Otherwise it might return earlier.
- Throws
InterruptedException – interrupted while waiting for the handler to be fully removed
- Returns
trueif the handler was already available and is now removed, elsefalse
setEventReceivingStrategy¶
-
void
setEventReceivingStrategy(EventReceivingStrategy strategy)¶ Defines the
EventReceivingStrategyto use by the configurator. Must be called directly after construction before any other method was called.- Parameters
strategy – the new strategy