Class EclipseLinkHazelcastChanelSupplier.HazelcastMessageChannel
java.lang.Object
io.jmix.autoconfigure.eclipselink.EclipseLinkHazelcastChanelSupplier.HazelcastMessageChannel
- All Implemented Interfaces:
org.springframework.messaging.MessageChannel
,org.springframework.messaging.SubscribableChannel
- Enclosing class:
- EclipseLinkHazelcastChanelSupplier
protected static class EclipseLinkHazelcastChanelSupplier.HazelcastMessageChannel
extends Object
implements org.springframework.messaging.SubscribableChannel
-
Field Summary
Modifier and TypeFieldDescriptionprotected final com.hazelcast.topic.ITopic<org.springframework.messaging.Message<?>>
Fields inherited from interface org.springframework.messaging.MessageChannel
INDEFINITE_TIMEOUT
-
Constructor Summary
ConstructorDescriptionHazelcastMessageChannel
(com.hazelcast.topic.ITopic<org.springframework.messaging.Message<?>> topic) -
Method Summary
Modifier and TypeMethodDescriptionboolean
send
(org.springframework.messaging.Message<?> message) boolean
send
(org.springframework.messaging.Message<?> message, long timeout) boolean
subscribe
(org.springframework.messaging.MessageHandler handler) boolean
unsubscribe
(org.springframework.messaging.MessageHandler handler)
-
Field Details
-
topic
protected final com.hazelcast.topic.ITopic<org.springframework.messaging.Message<?>> topic
-
-
Constructor Details
-
HazelcastMessageChannel
public HazelcastMessageChannel(com.hazelcast.topic.ITopic<org.springframework.messaging.Message<?>> topic)
-
-
Method Details
-
subscribe
public boolean subscribe(org.springframework.messaging.MessageHandler handler) - Specified by:
subscribe
in interfaceorg.springframework.messaging.SubscribableChannel
-
unsubscribe
public boolean unsubscribe(org.springframework.messaging.MessageHandler handler) - Specified by:
unsubscribe
in interfaceorg.springframework.messaging.SubscribableChannel
-
send
public boolean send(org.springframework.messaging.Message<?> message) - Specified by:
send
in interfaceorg.springframework.messaging.MessageChannel
-
send
public boolean send(org.springframework.messaging.Message<?> message, long timeout) - Specified by:
send
in interfaceorg.springframework.messaging.MessageChannel
-