Class JmsAdapter


  • public class JmsAdapter
    extends ch.squaredesk.nova.comm.CommAdapter<String>
    • 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