RouteConfigurator

public interface RouteConfigurator<ConnectorType extends Connector> extends Activatable

Abstract interface for classes setting up event receiving or sending routes from rsb.Participant instances to the concrete transport implementations.

Author

jwienke

Parameters

<ConnectorType> – The type of Connector instances used by implementing classes

Methods

addConnector

void addConnector(ConnectorType connector)

Adds a connector which will subsequently be used for for sending events. This method must only be called before the object is being activated using activate().

Parameters

connector – connector to add

getTransportUris

Set<URI> getTransportUris()

Returns URIs describing the transports configured for this configurator. Only valid if activated.

Throws

IllegalStateException – instance is in wrong state to get these URIs

Returns

set of transport URIs, not null

removeConnector

boolean removeConnector(ConnectorType connector)

Removes a connector, which will not receive events for sending afterwards. This method must only be called before the object is being activated using activate().

Parameters

connector – the connector to remove

Returns

true if the connector was previously installed and hence remove now, else false