Package io.keldysh.messaging.artemis
Class ArtemisClient
java.lang.Object
io.keldysh.messaging.artemis.ArtemisClient
- All Implemented Interfaces:
MessageClient
,Closeable
,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionArtemisClient
(ArtemisConfigurationProperties configurationProperties) ArtemisClient
(org.apache.activemq.artemis.api.core.client.ServerLocator serverLocator, ArtemisConfigurationProperties configurationProperties) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
<PAYLOAD> MessageSink<PAYLOAD>
sink
(String outbound, PayloadParser.Writer<PAYLOAD> writer) <PAYLOAD> MessageSource<PAYLOAD>
source
(String inbound, PayloadParser.Reader<PAYLOAD> reader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.keldysh.messaging.MessageClient
sink, sink, source, source
-
Constructor Details
-
ArtemisClient
public ArtemisClient(org.apache.activemq.artemis.api.core.client.ServerLocator serverLocator, ArtemisConfigurationProperties configurationProperties) throws Exception - Throws:
Exception
-
ArtemisClient
- Throws:
Exception
-
-
Method Details
-
sink
- Specified by:
sink
in interfaceMessageClient
-
source
public <PAYLOAD> MessageSource<PAYLOAD> source(String inbound, PayloadParser.Reader<PAYLOAD> reader) - Specified by:
source
in interfaceMessageClient
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-