public interface PushInRouteConfigurator extends InRouteConfigurator<InPushConnector>
handlerAdded(Handler, boolean)
and
handlerRemoved(Handler, boolean)
need to be callable before and
after calling Activatable.activate()
.Activatable.State
Modifier and Type | Method and Description |
---|---|
void |
handlerAdded(Handler handler,
boolean wait)
Called in case a
Handler was added to the participant for which
the route is being configured. |
boolean |
handlerRemoved(Handler handler,
boolean wait)
Called in case a
Handler was remove from the participant for
which the route is being configured. |
void |
setEventReceivingStrategy(EventReceivingStrategy strategy)
Defines the
EventReceivingStrategy to use by the configurator. |
filterAdded, filterRemoved
addConnector, getTransportUris, removeConnector
activate, deactivate, isActive
void handlerAdded(Handler handler, boolean wait) throws InterruptedException
Handler
was added to the participant for which
the route is being configured. This method should incorporate that
handler into the route.handler
- the added handlerwait
- 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.InterruptedException
- interrupted while waiting for the handler to be fully removedboolean handlerRemoved(Handler handler, boolean wait) throws InterruptedException
Handler
was remove from the participant for
which the route is being configured. This method should remove that
handler from the route.handler
- the removed handlerwait
- 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.true
if the handler was already available and is now
removed, else false
InterruptedException
- interrupted while waiting for the handler to be fully removedvoid setEventReceivingStrategy(EventReceivingStrategy strategy)
EventReceivingStrategy
to use by the configurator.
Must be called directly after construction before any other method was
called.strategy
- the new strategyCopyright © 2018 CoR-Lab. All rights reserved.