Package ch.squaredesk.nova.comm.jms
Class JmsAdapter
- java.lang.Object
-
- ch.squaredesk.nova.comm.CommAdapter<String>
-
- ch.squaredesk.nova.comm.jms.JmsAdapter
-
public class JmsAdapter extends ch.squaredesk.nova.comm.CommAdapter<String>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJmsAdapter.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDestinationListener(Consumer<javax.jms.Destination> destinationListener)static JmsAdapter.Builderbuilder()protected io.reactivex.CompletabledoSendMessage(javax.jms.Destination destination, String message, Map<String,Object> customHeaders, Integer deliveryMode, Integer priority, Long timeToLive)protected <T> io.reactivex.CompletabledoSendMessage(javax.jms.Destination destination, T message, io.reactivex.functions.Function<T,String> transcriber, Map<String,Object> customHeaders, Integer deliveryMode, Integer priority, Long timeToLive)io.reactivex.Flowable<String>messages(javax.jms.Destination destination)<T> io.reactivex.Flowable<T>messages(javax.jms.Destination destination, io.reactivex.functions.Function<String,T> messageTranscriber)<T> io.reactivex.Flowable<T>messages(javax.jms.Destination destination, Class<T> messageType)voidremoveDestinationListener(Consumer<javax.jms.Destination> destinationListener)<T> io.reactivex.Flowable<RpcInvocation<T>>requests(javax.jms.Destination destination, Class<T> requestType)io.reactivex.CompletablesendMessage(javax.jms.Destination destination, String message)io.reactivex.CompletablesendMessage(javax.jms.Destination destination, String message, Map<String,Object> customHeaders)<T> io.reactivex.CompletablesendMessage(javax.jms.Destination destination, T message)<T> io.reactivex.CompletablesendMessage(javax.jms.Destination destination, T message, io.reactivex.functions.Function<T,String> transcriber)<T> io.reactivex.CompletablesendMessage(javax.jms.Destination destination, T message, io.reactivex.functions.Function<T,String> transcriber, Map<String,Object> customHeaders)<T> io.reactivex.CompletablesendMessage(javax.jms.Destination destination, T message, io.reactivex.functions.Function<T,String> transcriber, Map<String,Object> customHeaders, Integer deliveryMode, Integer priority, Long timeToLive)<T> io.reactivex.CompletablesendMessage(javax.jms.Destination destination, T message, Map<String,Object> customHeaders)<T> io.reactivex.CompletablesendMessage(javax.jms.Destination destination, T message, Map<String,Object> customHeaders, Integer deliveryMode, Integer priority, Long timeToLive)<T,U> io.reactivex.Single<RpcReply<U>>sendRequest(javax.jms.Destination destination, javax.jms.Destination replyDestination, T message, Map<String,Object> customHeaders, io.reactivex.functions.Function<String,U> replyTranscriber, long timeout, TimeUnit timeUnit)<T,U> io.reactivex.Single<RpcReply<U>>sendRequest(javax.jms.Destination destination, javax.jms.Destination replyDestination, T request, Map<String,Object> customHeaders, io.reactivex.functions.Function<String,U> replyTranscriber, Integer deliveryMode, Integer priority, Long timeToLive, Long timeout, TimeUnit timeUnit)<T,U> io.reactivex.Single<RpcReply<U>>sendRequest(javax.jms.Destination destination, javax.jms.Destination replyDestination, T message, Map<String,Object> customHeaders, Class<U> replyType, long timeout, TimeUnit timeUnit)<T,U> io.reactivex.Single<RpcReply<U>>sendRequest(javax.jms.Destination destination, javax.jms.Destination replyDestination, T request, Map<String,Object> customHeaders, Class<U> replyType, Integer deliveryMode, Integer priority, Long timeToLive, Long timeout, TimeUnit timeUnit)<T,U> io.reactivex.Single<RpcReply<U>>sendRequest(javax.jms.Destination destination, T message, io.reactivex.functions.Function<String,U> replyTranscriber)<T,U> io.reactivex.Single<RpcReply<U>>sendRequest(javax.jms.Destination destination, T message, io.reactivex.functions.Function<String,U> replyTranscriber, long timeout, TimeUnit timeUnit)<T,U> io.reactivex.Single<RpcReply<U>>sendRequest(javax.jms.Destination destination, T message, Class<U> replyType)<T,U> io.reactivex.Single<RpcReply<U>>sendRequest(javax.jms.Destination destination, T message, Class<U> replyType, long timeout, TimeUnit timeUnit)<T,U> io.reactivex.Single<RpcReply<U>>sendRequest(javax.jms.Destination destination, T message, Map<String,Object> customHeaders, io.reactivex.functions.Function<String,U> replyTranscriber)<T,U> io.reactivex.Single<RpcReply<U>>sendRequest(javax.jms.Destination destination, T message, Map<String,Object> customHeaders, io.reactivex.functions.Function<String,U> replyTranscriber, Long timeout, TimeUnit timeUnit)<T,U> io.reactivex.Single<RpcReply<U>>sendRequest(javax.jms.Destination destination, T message, Map<String,Object> customHeaders, Class<U> replyType)<T,U> io.reactivex.Single<RpcReply<U>>sendRequest(javax.jms.Destination destination, T message, Map<String,Object> customHeaders, Class<U> replyType, Long timeout, TimeUnit timeUnit)voidshutdown()voidstart()
-
-
-
Method Detail
-
sendMessage
public <T> io.reactivex.Completable sendMessage(javax.jms.Destination destination, T message) throws Exception- Throws:
Exception
-
sendMessage
public <T> io.reactivex.Completable sendMessage(javax.jms.Destination destination, T message, Map<String,Object> customHeaders)
-
sendMessage
public <T> io.reactivex.Completable sendMessage(javax.jms.Destination destination, T message, Map<String,Object> customHeaders, Integer deliveryMode, Integer priority, Long timeToLive)
-
sendMessage
public <T> io.reactivex.Completable sendMessage(javax.jms.Destination destination, T message, io.reactivex.functions.Function<T,String> transcriber) throws Exception- Throws:
Exception
-
sendMessage
public <T> io.reactivex.Completable sendMessage(javax.jms.Destination destination, T message, io.reactivex.functions.Function<T,String> transcriber, Map<String,Object> customHeaders)
-
sendMessage
public <T> io.reactivex.Completable sendMessage(javax.jms.Destination destination, T message, io.reactivex.functions.Function<T,String> transcriber, Map<String,Object> customHeaders, Integer deliveryMode, Integer priority, Long timeToLive)
-
doSendMessage
protected <T> io.reactivex.Completable doSendMessage(javax.jms.Destination destination, T message, io.reactivex.functions.Function<T,String> transcriber, Map<String,Object> customHeaders, Integer deliveryMode, Integer priority, Long timeToLive)
-
sendMessage
public io.reactivex.Completable sendMessage(javax.jms.Destination destination, String message)
-
sendMessage
public io.reactivex.Completable sendMessage(javax.jms.Destination destination, String message, Map<String,Object> customHeaders)
-
doSendMessage
protected io.reactivex.Completable doSendMessage(javax.jms.Destination destination, String message, Map<String,Object> customHeaders, Integer deliveryMode, Integer priority, Long timeToLive)
-
messages
public io.reactivex.Flowable<String> messages(javax.jms.Destination destination)
-
messages
public <T> io.reactivex.Flowable<T> messages(javax.jms.Destination destination, Class<T> messageType)
-
messages
public <T> io.reactivex.Flowable<T> messages(javax.jms.Destination destination, io.reactivex.functions.Function<String,T> messageTranscriber)
-
requests
public <T> io.reactivex.Flowable<RpcInvocation<T>> requests(javax.jms.Destination destination, Class<T> requestType)
-
sendRequest
public <T,U> io.reactivex.Single<RpcReply<U>> sendRequest(javax.jms.Destination destination, javax.jms.Destination replyDestination, T request, Map<String,Object> customHeaders, io.reactivex.functions.Function<String,U> replyTranscriber, Integer deliveryMode, Integer priority, Long timeToLive, Long timeout, TimeUnit timeUnit)
-
sendRequest
public <T,U> io.reactivex.Single<RpcReply<U>> sendRequest(javax.jms.Destination destination, javax.jms.Destination replyDestination, T message, Map<String,Object> customHeaders, io.reactivex.functions.Function<String,U> replyTranscriber, long timeout, TimeUnit timeUnit)
-
sendRequest
public <T,U> io.reactivex.Single<RpcReply<U>> sendRequest(javax.jms.Destination destination, T message, Map<String,Object> customHeaders, io.reactivex.functions.Function<String,U> replyTranscriber, Long timeout, TimeUnit timeUnit)
-
sendRequest
public <T,U> io.reactivex.Single<RpcReply<U>> sendRequest(javax.jms.Destination destination, T message, Map<String,Object> customHeaders, io.reactivex.functions.Function<String,U> replyTranscriber)
-
sendRequest
public <T,U> io.reactivex.Single<RpcReply<U>> sendRequest(javax.jms.Destination destination, T message, io.reactivex.functions.Function<String,U> replyTranscriber, long timeout, TimeUnit timeUnit)
-
sendRequest
public <T,U> io.reactivex.Single<RpcReply<U>> sendRequest(javax.jms.Destination destination, T message, io.reactivex.functions.Function<String,U> replyTranscriber)
-
sendRequest
public <T,U> io.reactivex.Single<RpcReply<U>> sendRequest(javax.jms.Destination destination, javax.jms.Destination replyDestination, T request, Map<String,Object> customHeaders, Class<U> replyType, Integer deliveryMode, Integer priority, Long timeToLive, Long timeout, TimeUnit timeUnit)
-
sendRequest
public <T,U> io.reactivex.Single<RpcReply<U>> sendRequest(javax.jms.Destination destination, javax.jms.Destination replyDestination, T message, Map<String,Object> customHeaders, Class<U> replyType, long timeout, TimeUnit timeUnit)
-
sendRequest
public <T,U> io.reactivex.Single<RpcReply<U>> sendRequest(javax.jms.Destination destination, T message, Map<String,Object> customHeaders, Class<U> replyType, Long timeout, TimeUnit timeUnit)
-
sendRequest
public <T,U> io.reactivex.Single<RpcReply<U>> sendRequest(javax.jms.Destination destination, T message, Map<String,Object> customHeaders, Class<U> replyType)
-
sendRequest
public <T,U> io.reactivex.Single<RpcReply<U>> sendRequest(javax.jms.Destination destination, T message, Class<U> replyType, long timeout, TimeUnit timeUnit)
-
sendRequest
public <T,U> io.reactivex.Single<RpcReply<U>> sendRequest(javax.jms.Destination destination, T message, Class<U> replyType)
-
addDestinationListener
public void addDestinationListener(Consumer<javax.jms.Destination> destinationListener)
-
removeDestinationListener
public void removeDestinationListener(Consumer<javax.jms.Destination> destinationListener)
-
shutdown
public void shutdown()
-
start
public void start() throws javax.jms.JMSException- Throws:
javax.jms.JMSException
-
builder
public static JmsAdapter.Builder builder()
-
-