Class MulticastSender
- java.lang.Object
-
- org.appng.core.controller.messaging.MulticastSender
-
-
Field Summary
Fields Modifier and Type Field Description static String
APPNG_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 MulticastSender
configure(Serializer eventSerializer)
Configures this sender with the givenSerializer
protected String
getGroupAddress()
protected Integer
getGroupPort()
protected boolean
isSameAddress(String hostAddress)
boolean
send(Event event)
Sends the givenEvent
protected void
setGroupAddress(String address)
protected void
setGroupPort(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:Sender
Configures this sender with the givenSerializer
- Specified by:
configure
in interfaceSender
- Parameters:
eventSerializer
- theSerializer
to use- Returns:
- the sender
-
send
public boolean send(Event event)
Description copied from interface:Sender
Sends 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:
UnknownHostException
SocketException
-
-