public interface ZeroMQPubSubBroker
| Modifier and Type | Method and Description |
|---|---|
void |
connect(java.lang.String connectionId,
org.fabric3.api.binding.zeromq.model.ZeroMQMetadata metadata,
boolean dedicatedThread,
org.fabric3.spi.container.channel.ChannelConnection connection,
java.lang.ClassLoader loader)
Connects the channel connection to the publisher for the given channel.
|
void |
release(java.lang.String connectionId,
org.fabric3.api.binding.zeromq.model.ZeroMQMetadata metadata)
Releases a publisher for a channel.
|
void |
startAll()
Starts all publishers and subscribers.
|
void |
stopAll()
Stops all publishers and subscribers.
|
void |
subscribe(java.net.URI subscriberId,
org.fabric3.api.binding.zeromq.model.ZeroMQMetadata metadata,
org.fabric3.spi.container.channel.ChannelConnection connection,
java.lang.ClassLoader loader)
Subscribes a consumer to the given channel.
|
void |
unsubscribe(java.net.URI subscriberId,
org.fabric3.api.binding.zeromq.model.ZeroMQMetadata metadata)
Removes a consumer from the given channel.
|
void subscribe(java.net.URI subscriberId,
org.fabric3.api.binding.zeromq.model.ZeroMQMetadata metadata,
org.fabric3.spi.container.channel.ChannelConnection connection,
java.lang.ClassLoader loader)
throws BrokerException
subscriberId - the unique subscription idmetadata - the ZeroMQ metadata to configure the underlying socketconnection - the consumer connection to dispatch received message toloader - the classloader for deserializing events, typically the consumer implementation contribution classloaderBrokerException - if an error occurs creating the subscriptionvoid unsubscribe(java.net.URI subscriberId,
org.fabric3.api.binding.zeromq.model.ZeroMQMetadata metadata)
throws BrokerException
subscriberId - the unique subscription idmetadata - the ZeroMQ metadata to configure the underlying socketBrokerException - if an error occurs removing the subscriptionvoid connect(java.lang.String connectionId,
org.fabric3.api.binding.zeromq.model.ZeroMQMetadata metadata,
boolean dedicatedThread,
org.fabric3.spi.container.channel.ChannelConnection connection,
java.lang.ClassLoader loader)
throws BrokerException
connectionId - the unique id for the connectionmetadata - the ZeroMQ metadata to configure the underlying socketconnection - the producer that dispatches messages to the publisherloader - the classloader for the event types being sentBrokerException - if an error occurs removing the subscriptionvoid release(java.lang.String connectionId,
org.fabric3.api.binding.zeromq.model.ZeroMQMetadata metadata)
throws BrokerException
connectionId - the unique id for the connectionmetadata - the ZeroMQ metadata to configure the underlying socketBrokerException - if an error occurs removing the publishervoid startAll()
void stopAll()