Class CouchbaseResource


  • @Path("/couchbase")
    @ApplicationScoped
    @Consumes("text/plain")
    public class CouchbaseResource
    extends Object
    • Field Detail

      • producerTemplate

        @Inject
        org.apache.camel.ProducerTemplate producerTemplate
      • consumerTemplate

        @Inject
        org.apache.camel.ConsumerTemplate consumerTemplate
      • connectionUri

        String connectionUri
      • bucketName

        String bucketName
      • timeout

        long timeout
    • Constructor Detail

      • CouchbaseResource

        public CouchbaseResource()
    • Method Detail

      • insert

        @PUT
        @Path("id/{id}")
        @Produces("text/plain")
        public boolean insert​(@PathParam("id")
                              String id,
                              String msg)
      • getById

        @GET
        @Path("{id}")
        @Produces("text/plain")
        public String getById​(@PathParam("id")
                              String id)
      • delete

        @DELETE
        @Path("{id}")
        @Produces("text/plain")
        public boolean delete​(@PathParam("id")
                              String id)
      • poll

        @GET
        @Path("poll")
        @Produces("text/plain")
        public String poll()