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 intDEFAULT_MULTICAST_PORTstatic intDEFAULT_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)voiddecode(ClusterJoinConfig.Decoder decoder)Executes one of the givenClusterJoinConfig.Decodercallback methods, dependending on our type.booleanequals(Object o)InetAddressgetMulticastAddress()intgetMulticastPort()intgetMulticastTTL()ClusterJoinConfig.ClusterJoinTypegetType()inthashCode()StringtoString() 
 - 
 
- 
- 
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:
 getTypein interfaceClusterJoinConfig
 
- 
decode
public void decode(ClusterJoinConfig.Decoder decoder)
Description copied from interface:ClusterJoinConfigExecutes one of the givenClusterJoinConfig.Decodercallback methods, dependending on our type.- Specified by:
 decodein interfaceClusterJoinConfig
 
 - 
 
 -