| Package | Description |
|---|---|
| io.atomix.cluster |
Provides classes and interfaces for cluster management.
|
| io.atomix.cluster.messaging |
Provides high-level interfaces for direct and publish-subscribe inter-cluster communication.
|
| Modifier and Type | Method and Description |
|---|---|
static MemberId |
MemberId.anonymous()
Creates a new cluster node identifier from the specified string.
|
static MemberId |
MemberId.from(String id)
Creates a new cluster node identifier from the specified string.
|
MemberId |
MemberConfig.getId()
Returns the member identifier.
|
MemberId |
Member.id() |
| Modifier and Type | Method and Description |
|---|---|
static MemberBuilder |
Member.builder(MemberId memberId)
Returns a new member builder.
|
Member |
ClusterMembershipService.getMember(MemberId memberId)
Returns the specified member.
|
static Member |
Member.member(MemberId memberId,
io.atomix.utils.net.Address address)
Returns a new named cluster member.
|
MemberConfig |
MemberConfig.setId(MemberId id)
Sets the member identifier.
|
MemberBuilder |
MemberBuilder.withId(MemberId id)
Sets the member identifier.
|
AtomixClusterBuilder |
AtomixClusterBuilder.withMemberId(MemberId localMemberId)
Sets the local member identifier.
|
| Modifier and Type | Method and Description |
|---|---|
default <M,R> CompletableFuture<R> |
ClusterCommunicationService.send(String subject,
M message,
Function<M,byte[]> encoder,
Function<byte[],R> decoder,
MemberId toMemberId)
Sends a message and expects a reply.
|
<M,R> CompletableFuture<R> |
ClusterCommunicationService.send(String subject,
M message,
Function<M,byte[]> encoder,
Function<byte[],R> decoder,
MemberId toMemberId,
Duration timeout)
Sends a message and expects a reply.
|
default <M,R> CompletableFuture<R> |
ClusterCommunicationService.send(String subject,
M message,
MemberId toMemberId)
Sends a message and expects a reply.
|
default <M,R> CompletableFuture<R> |
ClusterCommunicationService.send(String subject,
M message,
MemberId toMemberId,
Duration timeout)
Sends a message and expects a reply.
|
<M> CompletableFuture<Void> |
ClusterCommunicationService.unicast(String subject,
M message,
Function<M,byte[]> encoder,
MemberId toMemberId)
Sends a message to the specified member.
|
default <M> CompletableFuture<Void> |
ClusterCommunicationService.unicast(String subject,
M message,
MemberId toMemberId)
Sends a message to the specified member.
|
| Modifier and Type | Method and Description |
|---|---|
<M> void |
ClusterCommunicationService.multicast(String subject,
M message,
Function<M,byte[]> encoder,
Set<MemberId> memberIds)
Multicasts a message to a set of members.
|
default <M> void |
ClusterCommunicationService.multicast(String subject,
M message,
Set<MemberId> memberIds)
Multicasts a message to a set of members.
|
Copyright © 2013–2018. All rights reserved.