public class AnycastAddress extends Object implements Address, Constructable<AnycastAddress>
Modifier and Type | Field and Description |
---|---|
protected Collection<Address> |
destinations |
IP_ADDR, IP_ADDR_UUID, NULL, SITE_MASTER, SITE_UUID, UUID_ADDR
Constructor and Description |
---|
AnycastAddress() |
AnycastAddress(Address... addresses) |
AnycastAddress(Collection<Address> addresses) |
Modifier and Type | Method and Description |
---|---|
void |
add(Address... addresses) |
void |
addAll(Collection<Address> addresses) |
int |
compareTo(Address o) |
Supplier<? extends AnycastAddress> |
create()
Creates an instance of the class implementing this interface
|
boolean |
equals(Object o) |
Optional<Collection<Address>> |
findAddresses() |
Collection<Address> |
getAddresses() |
int |
hashCode() |
protected void |
internalAdd(Address address) |
void |
readFrom(DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
int |
serializedSize()
Returns the size (in bytes) of the marshalled object
|
String |
toString() |
void |
writeTo(DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
protected Collection<Address> destinations
public AnycastAddress()
public AnycastAddress(Collection<Address> addresses)
public AnycastAddress(Address... addresses)
public Supplier<? extends AnycastAddress> create()
Constructable
create
in interface Constructable<AnycastAddress>
public void add(Address... addresses)
protected void internalAdd(Address address)
public void addAll(Collection<Address> addresses)
public Collection<Address> getAddresses()
public Optional<Collection<Address>> findAddresses()
public int serializedSize()
SizeStreamable
serializedSize
in interface SizeStreamable
public int compareTo(Address o)
compareTo
in interface Comparable<Address>
public void writeTo(DataOutput out) throws Exception
Streamable
writeTo
in interface Streamable
Exception
public void readFrom(DataInput in) throws Exception
Streamable
readFrom
in interface Streamable
Exception
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.