
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
loggerFields 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 TypeMethodDescriptionvoidvoiddestroy()intbooleanhasSubscription(org.springframework.messaging.MessageHandler handler) static LinkedBlockingChannelnewSynchronous(String theName, RetryPolicyProvider theRetryPolicyProvider) Creates a synchronous channel for testingbooleansubscribe(org.springframework.messaging.MessageHandler theHandler) booleanunsubscribe(org.springframework.messaging.MessageHandler handler) Methods inherited from class org.springframework.messaging.support.ExecutorSubscribableChannel
addInterceptor, addInterceptor, getExecutor, sendInternal, setInterceptorsMethods inherited from class org.springframework.messaging.support.AbstractSubscribableChannel
getSubscribersMethods inherited from class org.springframework.messaging.support.AbstractMessageChannel
getBeanName, getInterceptors, getLogger, removeInterceptor, removeInterceptor, send, send, setBeanName, setLogger, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.messaging.support.InterceptableChannel
addInterceptor, addInterceptor, getInterceptors, removeInterceptor, removeInterceptor, setInterceptorsMethods inherited from interface ca.uhn.fhir.broker.jms.ISpringMessagingChannelReceiver
pause, resume, startMethods 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:
getChannelNamein interfaceISpringMessagingChannelReceiver- Returns:
- the name of the Queue this Channel Receiver consumes from
-
hasSubscription
- Overrides:
hasSubscriptionin classorg.springframework.messaging.support.AbstractSubscribableChannel
-
subscribe
- Specified by:
subscribein interfaceorg.springframework.messaging.SubscribableChannel- Overrides:
subscribein classorg.springframework.messaging.support.AbstractSubscribableChannel
-
unsubscribe
- Specified by:
unsubscribein interfaceorg.springframework.messaging.SubscribableChannel- Overrides:
unsubscribein classorg.springframework.messaging.support.AbstractSubscribableChannel
-
destroy
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean
-
newSynchronous
public static LinkedBlockingChannel newSynchronous(String theName, RetryPolicyProvider theRetryPolicyProvider) Creates a synchronous channel for testing
-