| Package | Description |
|---|---|
| io.atomix.cluster |
Provides classes and interfaces for cluster management.
|
| io.atomix.cluster.discovery |
Provides classes and interfaces for extensible cluster membership discovery.
|
| io.atomix.cluster.messaging |
Provides high-level interfaces for direct and publish-subscribe inter-cluster communication.
|
| io.atomix.core |
Core APIs for managing Atomix clusters and operating on distributed primitives.
|
| io.atomix.utils.net |
Provides classes and interfaces for representing and operating on IP addresses.
|
| Modifier and Type | Method and Description |
|---|---|
Address |
Node.address()
Returns the node address.
|
Address |
NodeConfig.getAddress()
Returns the node address.
|
Address |
MemberConfig.getAddress()
Returns the member address.
|
| Modifier and Type | Method and Description |
|---|---|
default Member |
ClusterMembershipService.getMember(Address address)
Returns a member by address.
|
static Member |
Member.member(Address address)
Returns a new anonymous cluster member.
|
static Member |
Member.member(MemberId memberId,
Address address)
Returns a new named cluster member.
|
NodeConfig |
NodeConfig.setAddress(Address address)
Sets the node address.
|
MemberConfig |
MemberConfig.setAddress(Address address)
Sets the member address.
|
MemberBuilder |
MemberBuilder.withAddress(Address address)
Sets the member address.
|
AtomixClusterBuilder |
AtomixClusterBuilder.withAddress(Address address)
Sets the member address.
|
NodeBuilder |
NodeBuilder.withAddress(Address address)
Sets the node address.
|
AtomixClusterBuilder |
AtomixClusterBuilder.withMulticastAddress(Address address)
Sets the multicast address.
|
| Modifier and Type | Method and Description |
|---|---|
BootstrapDiscoveryBuilder |
BootstrapDiscoveryBuilder.withNodes(Address... nodes)
Sets the bootstrap nodes.
|
| Modifier and Type | Method and Description |
|---|---|
Address |
MessagingService.address()
Returns the local messaging service address.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<byte[]> |
MessagingService.sendAndReceive(Address address,
String type,
byte[] payload)
Sends a message asynchronously and expects a response.
|
CompletableFuture<byte[]> |
MessagingService.sendAndReceive(Address address,
String type,
byte[] payload,
Duration timeout)
Sends a message asynchronously and expects a response.
|
CompletableFuture<byte[]> |
MessagingService.sendAndReceive(Address address,
String type,
byte[] payload,
Duration timeout,
Executor executor)
Sends a message synchronously and expects a response.
|
CompletableFuture<byte[]> |
MessagingService.sendAndReceive(Address address,
String type,
byte[] payload,
Executor executor)
Sends a message synchronously and expects a response.
|
CompletableFuture<Void> |
MessagingService.sendAsync(Address address,
String type,
byte[] payload)
Sends a message asynchronously to the specified communication address.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MessagingService.registerHandler(String type,
BiConsumer<Address,byte[]> handler,
Executor executor)
Registers a new message handler for message type.
|
void |
MessagingService.registerHandler(String type,
BiFunction<Address,byte[],byte[]> handler,
Executor executor)
Registers a new message handler for message type.
|
void |
MessagingService.registerHandler(String type,
BiFunction<Address,byte[],CompletableFuture<byte[]>> handler)
Registers a new message handler for message type.
|
default <M> CompletableFuture<Void> |
ClusterCommunicationService.subscribe(String subject,
BiConsumer<Address,M> handler,
Executor executor)
Adds a new subscriber for the specified message subject.
|
<M> CompletableFuture<Void> |
ClusterCommunicationService.subscribe(String subject,
Function<byte[],M> decoder,
BiConsumer<Address,M> handler,
Executor executor)
Adds a new subscriber for the specified message subject.
|
| Modifier and Type | Method and Description |
|---|---|
AtomixBuilder |
AtomixBuilder.withAddress(Address address) |
AtomixBuilder |
AtomixBuilder.withMulticastAddress(Address address) |
| Modifier and Type | Method and Description |
|---|---|
static Address |
Address.from(int port)
Returns an address for the local host and the given port.
|
static Address |
Address.from(String address)
Returns the address from the given host:port string.
|
static Address |
Address.from(String host,
int port)
Returns an address for the given host/port.
|
static Address |
Address.local()
Returns an address that binds to all interfaces.
|
Copyright © 2013–2018. All rights reserved.