Class JMSDocumentSource<T>
java.lang.Object
no.mnemonic.messaging.documentchannel.jms.JMSDocumentSource<T>
- Type Parameters:
T
- document type
- All Implemented Interfaces:
AutoCloseable
,DocumentSource<T>
JMS version of a document channel source. The source is configured with a JMS session, which points to a JMS server/cluster
and a destination, which may be a topic or a queue.
Using multiple sources against a Queue will load-balance the incoming documents between the sources. Using multiple sources against a Topic will provide individual copies of each incoming document to each source.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> JMSDocumentSource.Builder<T>
builder()
void
close()
createDocumentSubscription
(DocumentChannelListener<T> listener) long
long
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface no.mnemonic.messaging.documentchannel.DocumentSource
poll
-
Method Details
-
createDocumentSubscription
- Specified by:
createDocumentSubscription
in interfaceDocumentSource<T>
-
poll
- Specified by:
poll
in interfaceDocumentSource<T>
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceDocumentSource<T>
-
getSessionsCreated
public long getSessionsCreated() -
getConnectionExceptions
public long getConnectionExceptions() -
builder
-