Package com.atlassian.confluence.cluster
Class MulticastClusterJoinConfig
- java.lang.Object
-
- com.atlassian.confluence.cluster.MulticastClusterJoinConfig
-
- All Implemented Interfaces:
ClusterJoinConfig
public class MulticastClusterJoinConfig extends Object implements ClusterJoinConfig
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.confluence.cluster.ClusterJoinConfig
ClusterJoinConfig.ClusterJoinType, ClusterJoinConfig.Decoder
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_MULTICAST_PORT
static int
DEFAULT_MULTICAST_TTL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static io.atlassian.fugue.Either<Message,MulticastClusterJoinConfig>
createForAddress(InetAddress multicastAddress)
static io.atlassian.fugue.Either<Message,MulticastClusterJoinConfig>
createForConfig(InetAddress multicastAddress, int multicastTTL, int multicastPort)
void
decode(ClusterJoinConfig.Decoder decoder)
Executes one of the givenClusterJoinConfig.Decoder
callback methods, dependending on our type.boolean
equals(Object o)
InetAddress
getMulticastAddress()
int
getMulticastPort()
int
getMulticastTTL()
ClusterJoinConfig.ClusterJoinType
getType()
int
hashCode()
String
toString()
-
-
-
Field Detail
-
DEFAULT_MULTICAST_TTL
public static final int DEFAULT_MULTICAST_TTL
- See Also:
- Constant Field Values
-
DEFAULT_MULTICAST_PORT
public static final int DEFAULT_MULTICAST_PORT
- See Also:
- Constant Field Values
-
-
Method Detail
-
createForAddress
public static io.atlassian.fugue.Either<Message,MulticastClusterJoinConfig> createForAddress(InetAddress multicastAddress)
- Since:
- 7.0.1
-
createForConfig
public static io.atlassian.fugue.Either<Message,MulticastClusterJoinConfig> createForConfig(InetAddress multicastAddress, int multicastTTL, int multicastPort)
- Since:
- 7.0.1
-
getMulticastAddress
public InetAddress getMulticastAddress()
-
getMulticastTTL
public int getMulticastTTL()
-
getMulticastPort
public int getMulticastPort()
-
getType
public ClusterJoinConfig.ClusterJoinType getType()
- Specified by:
getType
in interfaceClusterJoinConfig
-
decode
public void decode(ClusterJoinConfig.Decoder decoder)
Description copied from interface:ClusterJoinConfig
Executes one of the givenClusterJoinConfig.Decoder
callback methods, dependending on our type.- Specified by:
decode
in interfaceClusterJoinConfig
-
-