public class ClusterServiceHelix extends Object implements org.uberfire.commons.cluster.ClusterService
| Constructor and Description |
|---|
ClusterServiceHelix(String clusterName,
String zkAddress,
String instanceName,
String resourceName,
org.uberfire.commons.message.MessageHandlerResolver messageHandlerResolver) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessageHandlerResolver(org.uberfire.commons.message.MessageHandlerResolver resolver) |
void |
broadcast(String serviceId,
org.uberfire.commons.message.MessageType type,
Map<String,String> content) |
void |
broadcast(String serviceId,
org.uberfire.commons.message.MessageType type,
Map<String,String> content,
int timeOut,
org.uberfire.commons.message.AsyncCallback callback) |
void |
broadcastAndWait(String serviceId,
org.uberfire.commons.message.MessageType type,
Map<String,String> content,
int timeOut) |
void |
broadcastAndWait(String serviceId,
org.uberfire.commons.message.MessageType type,
Map<String,String> content,
int timeOut,
org.uberfire.commons.message.AsyncCallback callback) |
void |
dispose() |
int |
getHoldCount() |
void |
lock() |
void |
onStart(Runnable runnable) |
int |
priority() |
void |
sendTo(String serviceId,
String resourceId,
org.uberfire.commons.message.MessageType type,
Map<String,String> content) |
void |
unlock() |
public void addMessageHandlerResolver(org.uberfire.commons.message.MessageHandlerResolver resolver)
addMessageHandlerResolver in interface org.uberfire.commons.cluster.ClusterServicepublic void dispose()
dispose in interface org.uberfire.commons.lifecycle.Disposablepublic void onStart(Runnable runnable)
onStart in interface org.uberfire.commons.cluster.ClusterServicepublic int getHoldCount()
getHoldCount in interface org.uberfire.commons.cluster.ClusterServicepublic void lock()
lock in interface org.uberfire.commons.lock.LockServicepublic void unlock()
unlock in interface org.uberfire.commons.lock.LockServicepublic void broadcastAndWait(String serviceId, org.uberfire.commons.message.MessageType type, Map<String,String> content, int timeOut)
broadcastAndWait in interface org.uberfire.commons.message.MessageServicepublic void broadcastAndWait(String serviceId, org.uberfire.commons.message.MessageType type, Map<String,String> content, int timeOut, org.uberfire.commons.message.AsyncCallback callback)
broadcastAndWait in interface org.uberfire.commons.message.MessageServicepublic void broadcast(String serviceId, org.uberfire.commons.message.MessageType type, Map<String,String> content)
broadcast in interface org.uberfire.commons.message.MessageServicepublic void broadcast(String serviceId, org.uberfire.commons.message.MessageType type, Map<String,String> content, int timeOut, org.uberfire.commons.message.AsyncCallback callback)
broadcast in interface org.uberfire.commons.message.MessageServicepublic void sendTo(String serviceId, String resourceId, org.uberfire.commons.message.MessageType type, Map<String,String> content)
sendTo in interface org.uberfire.commons.message.MessageServicepublic int priority()
priority in interface org.uberfire.commons.lifecycle.PriorityDisposableCopyright © 2012–2017 JBoss by Red Hat. All rights reserved.