public abstract class AbstractClusterEventBroker extends Object implements EventBroker
| 限定符和类型 | 字段和说明 |
|---|---|
protected ClusterManager |
clusterManager |
protected reactor.core.Disposable.Composite |
disposable |
protected org.springframework.data.redis.core.ReactiveRedisOperations<String,byte[]> |
redis |
protected Codec<Subscription> |
subscriptionCodec |
| 构造器和说明 |
|---|
AbstractClusterEventBroker(ClusterManager clusterManager,
org.springframework.data.redis.connection.ReactiveRedisConnectionFactory factory) |
| 限定符和类型 | 方法和说明 |
|---|---|
reactor.core.publisher.Flux<EventConnection> |
accept() |
protected abstract reactor.core.publisher.Mono<Void> |
dispatch(String localId,
String brokerId,
TopicPayload payload) |
String |
getId() |
protected void |
handleRemoteConnection(String localId,
String remoteId) |
protected void |
handleServerNodeJoin(ServerNode node) |
protected void |
handleServerNodeLeave(ServerNode node) |
protected abstract reactor.core.publisher.Flux<TopicPayload> |
listen(String localId,
String brokerId) |
protected org.jetlinks.supports.cluster.event.AbstractClusterEventBroker.ClusterConnecting |
onConnectionCreated(org.jetlinks.supports.cluster.event.AbstractClusterEventBroker.ClusterConnecting clusterConnecting) |
void |
shutdown() |
void |
startup() |
protected final org.springframework.data.redis.core.ReactiveRedisOperations<String,byte[]> redis
protected final ClusterManager clusterManager
protected final Codec<Subscription> subscriptionCodec
protected final reactor.core.Disposable.Composite disposable
public AbstractClusterEventBroker(ClusterManager clusterManager, org.springframework.data.redis.connection.ReactiveRedisConnectionFactory factory)
public void startup()
public void shutdown()
protected void handleServerNodeJoin(ServerNode node)
protected void handleServerNodeLeave(ServerNode node)
protected org.jetlinks.supports.cluster.event.AbstractClusterEventBroker.ClusterConnecting onConnectionCreated(org.jetlinks.supports.cluster.event.AbstractClusterEventBroker.ClusterConnecting clusterConnecting)
public String getId()
getId 在接口中 EventBrokerpublic reactor.core.publisher.Flux<EventConnection> accept()
accept 在接口中 EventBrokerprotected abstract reactor.core.publisher.Flux<TopicPayload> listen(String localId, String brokerId)
protected abstract reactor.core.publisher.Mono<Void> dispatch(String localId, String brokerId, TopicPayload payload)
Copyright © 2019–2022. All rights reserved.