Class JedisSender
- java.lang.Object
-
- org.appng.core.controller.messaging.JedisBase
-
- org.appng.core.controller.messaging.JedisSender
-
- All Implemented Interfaces:
Sender
public class JedisSender extends JedisBase implements Sender
Message sender implementingSender
to use a redis database with its build-in publish/subscribe function as message broker. SeeJedisReceiver
for configuration details.- Author:
- Claus Stuemke, aiticon GmbH, 2015
- See Also:
JedisReceiver
-
-
Field Summary
-
Fields inherited from class org.appng.core.controller.messaging.JedisBase
channel, eventSerializer, host, password, port, REDIS_MESSAGING_CHANNEL, REDIS_MESSAGING_HOST, REDIS_MESSAGING_PASSWORD, REDIS_MESSAGING_PORT, REDIS_MESSAGING_TIMEOUT, timeout
-
-
Constructor Summary
Constructors Constructor Description JedisSender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Sender
configure(Serializer eventDeserializer)
Configures this sender with the givenSerializer
boolean
send(Event event)
Sends the givenEvent
-
Methods inherited from class org.appng.core.controller.messaging.JedisBase
getJedis, initialize
-
-
-
-
Method Detail
-
configure
public Sender configure(Serializer eventDeserializer)
Description copied from interface:Sender
Configures this sender with the givenSerializer
- Specified by:
configure
in interfaceSender
- Parameters:
eventDeserializer
- theSerializer
to use- Returns:
- the sender
-
-