Class MulticastSender
- java.lang.Object
-
- org.appng.core.controller.messaging.MulticastSender
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPPNG_MESSAGING_BIND_ADR
-
Constructor Summary
Constructors Constructor Description MulticastSender(String address, Integer port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MulticastSenderconfigure(Serializer eventSerializer)Configures this sender with the givenSerializerprotected StringgetGroupAddress()protected IntegergetGroupPort()protected booleanisSameAddress(String hostAddress)booleansend(Event event)Sends the givenEventprotected voidsetGroupAddress(String address)protected voidsetGroupPort(Integer port)
-
-
-
Field Detail
-
APPNG_MESSAGING_BIND_ADR
public static final String APPNG_MESSAGING_BIND_ADR
- See Also:
- Constant Field Values
-
-
Method Detail
-
configure
public MulticastSender configure(Serializer eventSerializer)
Description copied from interface:SenderConfigures this sender with the givenSerializer- Specified by:
configurein interfaceSender- Parameters:
eventSerializer- theSerializerto use- Returns:
- the sender
-
send
public boolean send(Event event)
Description copied from interface:SenderSends the givenEvent
-
getGroupPort
protected Integer getGroupPort()
-
getGroupAddress
protected String getGroupAddress()
-
setGroupPort
protected void setGroupPort(Integer port)
-
setGroupAddress
protected void setGroupAddress(String address)
-
isSameAddress
protected boolean isSameAddress(String hostAddress) throws UnknownHostException, SocketException
- Throws:
UnknownHostExceptionSocketException
-
-