public abstract class ClusterNode
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.concurrent.CompletableFuture<com.hazelcast.core.HazelcastInstance> |
hzStart |
protected org.slf4j.Logger |
logger |
protected java.util.Map<java.lang.String,Producer> |
producers |
Modifier | Constructor and Description |
---|---|
protected |
ClusterNode(java.lang.String jvmType) |
Modifier and Type | Method and Description |
---|---|
long |
clusterTime() |
Producer |
getProducer(java.lang.String topic) |
protected abstract com.hazelcast.core.HazelcastInstance |
hazelcastConnectImpl(java.lang.String jvmType) |
java.util.concurrent.CompletableFuture<com.hazelcast.core.HazelcastInstance> |
hz() |
java.util.concurrent.CompletableFuture<java.lang.Void> |
init() |
void |
init(MQ.IMQConnectHandler handler) |
protected java.lang.String |
memberAddress() |
protected static java.lang.String |
memberJvm(com.hazelcast.core.Member m) |
Consumer |
registerConsumer(java.lang.String topic,
OutOfProcessMessageHandler handler) |
Consumer |
registerConsumer(java.lang.String topic,
java.util.function.Predicate<org.vertx.java.core.json.JsonObject> filter,
OutOfProcessMessageHandler handler) |
Producer |
registerProducer(java.lang.String topic) |
protected abstract void |
setupMetrics(com.hazelcast.core.HazelcastInstance hzInstance) |
protected final org.slf4j.Logger logger
protected final java.util.Map<java.lang.String,Producer> producers
protected final java.util.concurrent.CompletableFuture<com.hazelcast.core.HazelcastInstance> hzStart
public java.util.concurrent.CompletableFuture<com.hazelcast.core.HazelcastInstance> hz()
protected abstract void setupMetrics(com.hazelcast.core.HazelcastInstance hzInstance)
protected static java.lang.String memberJvm(com.hazelcast.core.Member m)
public java.util.concurrent.CompletableFuture<java.lang.Void> init()
public final void init(MQ.IMQConnectHandler handler)
protected java.lang.String memberAddress()
protected abstract com.hazelcast.core.HazelcastInstance hazelcastConnectImpl(java.lang.String jvmType)
public long clusterTime()
public Consumer registerConsumer(java.lang.String topic, OutOfProcessMessageHandler handler)
topic
- handler
- public Consumer registerConsumer(java.lang.String topic, java.util.function.Predicate<org.vertx.java.core.json.JsonObject> filter, OutOfProcessMessageHandler handler)
topic
- handler
- public Producer registerProducer(java.lang.String topic)
public Producer getProducer(java.lang.String topic)
Copyright © 2021. All Rights Reserved.