public final class MQ
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
MQ.IMQConnectHandler |
static interface |
MQ.SharedMap<K,V> |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLUSTER_ID
For now use a fixed cluster id as we don't use multicast anymore and want to
avoid the split between bluemind-noid & bluemind-
|
static java.lang.String |
MEMBERSHIP_EVENTS_ADDRESS |
Constructor and Description |
---|
MQ() |
Modifier and Type | Method and Description |
---|---|
static long |
clusterTime()
The cluster tries to keep a cluster-wide time which might be different than
the member's own system time.
|
static Producer |
getProducer(java.lang.String topic) |
static java.util.concurrent.CompletableFuture<java.lang.Void> |
init() |
static void |
init(MQ.IMQConnectHandler handler) |
static IdGenerator |
newIdGenerator(java.lang.String seqName) |
static OOPMessage |
newMessage() |
static Consumer |
registerConsumer(java.lang.String topic,
OutOfProcessMessageHandler handler) |
static Consumer |
registerConsumer(java.lang.String topic,
java.util.function.Predicate<io.vertx.core.json.JsonObject> filter,
OutOfProcessMessageHandler handler) |
static Producer |
registerProducer(java.lang.String topic) |
static <K,V> MQ.SharedMap<K,V> |
sharedMap(java.lang.String name) |
static java.util.List<java.lang.String> |
topics() |
public static final java.lang.String MEMBERSHIP_EVENTS_ADDRESS
public static final java.lang.String CLUSTER_ID
public static java.util.concurrent.CompletableFuture<java.lang.Void> init()
public static final void init(MQ.IMQConnectHandler handler)
public static long clusterTime()
public static <K,V> MQ.SharedMap<K,V> sharedMap(java.lang.String name)
public static Consumer registerConsumer(java.lang.String topic, OutOfProcessMessageHandler handler)
topic
- handler
- public static Consumer registerConsumer(java.lang.String topic, java.util.function.Predicate<io.vertx.core.json.JsonObject> filter, OutOfProcessMessageHandler handler)
topic
- handler
- public static Producer registerProducer(java.lang.String topic)
public static Producer getProducer(java.lang.String topic)
public static OOPMessage newMessage()
public static IdGenerator newIdGenerator(java.lang.String seqName)
public static java.util.List<java.lang.String> topics()
Copyright © 2021. All Rights Reserved.