Package io.joynr.messaging.routing
Interface MulticastAddressCalculator
-
public interface MulticastAddressCalculator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<Address>calculate(ImmutableMessage message)Call this method to calculate a multicast address for the given message.booleancreatesGlobalTransportAddresses()Used to determine if the addresses created by this calculator are global transport addresses.booleansupports(String transport)Used to determine if the address calculator supports providing multicast addresses for a given transport.
-
-
-
Method Detail
-
calculate
Set<Address> calculate(ImmutableMessage message)
Call this method to calculate a multicast address for the given message. The message must be of typeMessage.MessageType.VALUE_MESSAGE_TYPE_MULTICAST.- Parameters:
message- the message for which to calculate the address.- Returns:
- the address calculated, or null if this wasn't possible.
-
supports
boolean supports(String transport)
Used to determine if the address calculator supports providing multicast addresses for a given transport.- Parameters:
transport- the transport for which to check whether this calculator can provide addresses for.- Returns:
trueif it does,falseotherwise.
-
createsGlobalTransportAddresses
boolean createsGlobalTransportAddresses()
Used to determine if the addresses created by this calculator are global transport addresses.- Returns:
trueif it does,falseotherwise.
-
-