
Class LinkedBlockingChannel
java.lang.Object
org.springframework.messaging.support.AbstractMessageChannel
org.springframework.messaging.support.AbstractSubscribableChannel
org.springframework.messaging.support.ExecutorSubscribableChannel
ca.uhn.fhir.jpa.subscription.channel.impl.LinkedBlockingChannel
- All Implemented Interfaces:
ISpringMessagingChannelProducer
,ISpringMessagingChannelReceiver
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.DisposableBean
,org.springframework.messaging.MessageChannel
,org.springframework.messaging.SubscribableChannel
,org.springframework.messaging.support.InterceptableChannel
public class LinkedBlockingChannel
extends org.springframework.messaging.support.ExecutorSubscribableChannel
implements ISpringMessagingChannelProducer, ISpringMessagingChannelReceiver
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.messaging.support.AbstractMessageChannel
org.springframework.messaging.support.AbstractMessageChannel.ChannelInterceptorChain
-
Field Summary
Fields inherited from class org.springframework.messaging.support.AbstractMessageChannel
logger
Fields inherited from interface org.springframework.messaging.MessageChannel
INDEFINITE_TIMEOUT
-
Constructor Summary
ConstructorsConstructorDescriptionLinkedBlockingChannel
(String theChannelName, Executor theExecutor, Supplier<Integer> theQueueSizeSupplier, RetryPolicyProvider theRetryPolicyProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
destroy()
int
boolean
hasSubscription
(org.springframework.messaging.MessageHandler handler) static LinkedBlockingChannel
newSynchronous
(String theName, RetryPolicyProvider theRetryPolicyProvider) Creates a synchronous channel for testingboolean
subscribe
(org.springframework.messaging.MessageHandler theHandler) boolean
unsubscribe
(org.springframework.messaging.MessageHandler handler) Methods inherited from class org.springframework.messaging.support.ExecutorSubscribableChannel
addInterceptor, addInterceptor, getExecutor, sendInternal, setInterceptors
Methods inherited from class org.springframework.messaging.support.AbstractSubscribableChannel
getSubscribers
Methods inherited from class org.springframework.messaging.support.AbstractMessageChannel
getBeanName, getInterceptors, getLogger, removeInterceptor, removeInterceptor, send, send, setBeanName, setLogger, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.messaging.support.InterceptableChannel
addInterceptor, addInterceptor, getInterceptors, removeInterceptor, removeInterceptor, setInterceptors
Methods inherited from interface ca.uhn.fhir.broker.jms.ISpringMessagingChannelReceiver
pause, resume, start
Methods inherited from interface org.springframework.messaging.MessageChannel
send, send
-
Constructor Details
-
LinkedBlockingChannel
public LinkedBlockingChannel(String theChannelName, Executor theExecutor, Supplier<Integer> theQueueSizeSupplier, RetryPolicyProvider theRetryPolicyProvider)
-
-
Method Details
-
getQueueSizeForUnitTest
-
clearInterceptorsForUnitTest
-
getChannelName
- Specified by:
getChannelName
in interfaceISpringMessagingChannelReceiver
- Returns:
- the name of the Queue this Channel Receiver consumes from
-
hasSubscription
- Overrides:
hasSubscription
in classorg.springframework.messaging.support.AbstractSubscribableChannel
-
subscribe
- Specified by:
subscribe
in interfaceorg.springframework.messaging.SubscribableChannel
- Overrides:
subscribe
in classorg.springframework.messaging.support.AbstractSubscribableChannel
-
unsubscribe
- Specified by:
unsubscribe
in interfaceorg.springframework.messaging.SubscribableChannel
- Overrides:
unsubscribe
in classorg.springframework.messaging.support.AbstractSubscribableChannel
-
destroy
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
-
newSynchronous
public static LinkedBlockingChannel newSynchronous(String theName, RetryPolicyProvider theRetryPolicyProvider) Creates a synchronous channel for testing
-