Class NsqResource


  • @Path("/nsq")
    @ApplicationScoped
    public class NsqResource
    extends Object
    • Field Detail

      • template

        @Inject
        org.apache.camel.ProducerTemplate template
    • Constructor Detail

      • NsqResource

        public NsqResource()
    • Method Detail

      • send

        @Path("/send")
        @POST
        @Consumes("text/plain")
        public void send​(String msg)
      • logNsqMessage

        void logNsqMessage​(String test,
                           String msg)
      • getNsqMessages

        @Path("/get-messages/{test}")
        @GET
        @Produces("text/plain")
        public String getNsqMessages​(@PathParam("test")
                                     String test)