public class ClusterJMSService extends Object implements ClusterService
| Modifier and Type | Class and Description |
|---|---|
static class |
ClusterJMSService.JMSExceptionListener |
ClusterService.DestinationType| Constructor and Description |
|---|
ClusterJMSService() |
| Modifier and Type | Method and Description |
|---|---|
void |
broadcast(ClusterService.DestinationType type,
String channel,
Serializable object) |
void |
close() |
void |
connect() |
<T> void |
createConsumer(ClusterService.DestinationType type,
String channel,
Class<T> objectMessageClass,
Consumer<T> listener) |
protected javax.jms.Session |
createConsumerSession() |
protected javax.jms.Destination |
createDestination(ClusterService.DestinationType type,
String channel,
javax.jms.Session session) |
boolean |
isAppFormerClustered() |
public void connect()
connect in interface ClusterServicepublic <T> void createConsumer(ClusterService.DestinationType type, String channel, Class<T> objectMessageClass, Consumer<T> listener)
createConsumer in interface ClusterServicepublic void broadcast(ClusterService.DestinationType type, String channel, Serializable object)
broadcast in interface ClusterServiceprotected javax.jms.Destination createDestination(ClusterService.DestinationType type, String channel, javax.jms.Session session) throws javax.jms.JMSException
javax.jms.JMSExceptionprotected javax.jms.Session createConsumerSession()
public boolean isAppFormerClustered()
isAppFormerClustered in interface ClusterServicepublic void close()
close in interface ClusterServiceCopyright © 2012–2019 JBoss by Red Hat. All rights reserved.