public interface EPNManager
Modifier and Type | Method and Description |
---|---|
void |
addNetworkListener(NetworkListener l)
This method registers a network listener.
|
void |
addNotificationListener(String network,
NotificationListener l)
This method registers a node listener for the specified network.
|
void |
close()
This method closes the manager.
|
void |
publish(String subject,
List<? extends Serializable> events)
This method publishes the supplied events to be processed
by any network subscribed to the nominated subject.
|
void |
register(Network network)
This method registers a network.
|
void |
removeNetworkListener(NetworkListener l)
This method unregisters a network listener.
|
void |
removeNotificationListener(String network,
NotificationListener l)
This method unregisters a node listener for the specified network.
|
void |
unregister(String networkName,
String version)
This method unregisters a network, associated with
the supplied name and version.
|
void register(Network network) throws Exception
network
- The networkException
- Failed to register the networkvoid unregister(String networkName, String version) throws Exception
networkName
- The network nameversion
- The version, or null if currentException
- Failed to unregister the networkvoid addNetworkListener(NetworkListener l)
l
- The listenervoid removeNetworkListener(NetworkListener l)
l
- The listenervoid addNotificationListener(String network, NotificationListener l)
network
- The network to listen tol
- The listenervoid removeNotificationListener(String network, NotificationListener l)
network
- The network was listening tol
- The listenervoid publish(String subject, List<? extends Serializable> events) throws Exception
subject
- The subject upon which to publish the eventsevents
- The list of events to be processedException
- Failed to publish the eventsCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.