Class UniqueAddress
Member identifier consisting of address and random uid
.
The uid
is needed to be able to distinguish different
incarnations of a member with same hostname and port.
Inherited Members
Namespace: Akka.Cluster
Assembly: Akka.Cluster.dll
Syntax
public class UniqueAddress : IComparable<UniqueAddress>, IEquatable<UniqueAddress>, IComparable
Constructors
| Improve this Doc View SourceUniqueAddress(Address, Int32)
Creates a new unique address instance.
Declaration
public UniqueAddress(Address address, int uid)
Parameters
Type | Name | Description |
---|---|---|
Address | address | The original Akka Address |
Int32 | uid | The UID for the cluster instance. |
Properties
| Improve this Doc View SourceAddress
The bound listening address for Akka.Remote.
Declaration
public Address Address { get; }
Property Value
Type | Description |
---|---|
Address |
Uid
A random long integer used to signal the incarnation of this cluster instance.
Declaration
public int Uid { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceCompareTo(UniqueAddress)
TBD
Declaration
public int CompareTo(UniqueAddress uniqueAddress)
Parameters
Type | Name | Description |
---|---|---|
UniqueAddress | uniqueAddress | TBD |
Returns
Type | Description |
---|---|
Int32 | TBD |
Equals(UniqueAddress)
Compares two unique address instances to each other.
Declaration
public bool Equals(UniqueAddress other)
Parameters
Type | Name | Description |
---|---|---|
UniqueAddress | other | The other address to compare to. |
Returns
Type | Description |
---|---|
Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
Operators
| Improve this Doc View SourceEquality(UniqueAddress, UniqueAddress)
Compares two specified unique addresses for equality.
Declaration
public static bool operator ==(UniqueAddress left, UniqueAddress right)
Parameters
Type | Name | Description |
---|---|---|
UniqueAddress | left | The first unique address used for comparison |
UniqueAddress | right | The second unique address used for comparison |
Returns
Type | Description |
---|---|
Boolean |
|
Inequality(UniqueAddress, UniqueAddress)
Compares two specified unique addresses for inequality.
Declaration
public static bool operator !=(UniqueAddress left, UniqueAddress right)
Parameters
Type | Name | Description |
---|---|---|
UniqueAddress | left | The first unique address used for comparison |
UniqueAddress | right | The second unique address used for comparison |
Returns
Type | Description |
---|---|
Boolean |
|
Explicit Interface Implementations
| Improve this Doc View SourceIComparable.CompareTo(Object)
Declaration
int IComparable.CompareTo(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Int32 |