Class CassandraqlResource

java.lang.Object
org.apache.camel.quarkus.component.cassandraql.it.CassandraqlResource

@Path("/cassandraql") @ApplicationScoped public class CassandraqlResource extends Object
  • Field Details

    • EMPTY_LIST

      public static final String EMPTY_LIST
      See Also:
    • camelContext

      @Inject org.apache.camel.CamelContext camelContext
    • producerTemplate

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

      @Inject org.apache.camel.ConsumerTemplate consumerTemplate
  • Constructor Details

    • CassandraqlResource

      public CassandraqlResource()
  • Method Details

    • insertEmployee

      @Path("/insertEmployee") @POST public void insertEmployee(@QueryParam("name") String name, @QueryParam("address") String address, @QueryParam("id") int id, @QueryParam("endpointUri") String endpointUri)
    • getEmployee

      @Path("/getEmployee") @GET @Produces("text/plain") public String getEmployee(@QueryParam("id") int id)
    • cqlHeaderQuery

      @Path("/cqlHeaderQuery") @GET @Produces("text/plain") public String cqlHeaderQuery(@QueryParam("id") int id, @QueryParam("cql") String cql, @QueryParam("queryAsSimpleStatement") boolean queryAsSimpleStatement)
    • getEmployeeWithStrategy

      @Path("/getEmployeeWithStrategy") @GET @Produces("text/plain") public String getEmployeeWithStrategy(@QueryParam("id") int id)
    • getAllEmployees

      @Path("/getAllEmployees") @GET @Produces("text/plain") public String getAllEmployees() throws Exception
      Throws:
      Exception
    • updateEmployee

      @Path("/updateEmployee") @PATCH @Produces("text/plain") public boolean updateEmployee(@QueryParam("name") String name, @QueryParam("address") String address, @QueryParam("id") int id)
    • deleteEmployeeById

      @Path("/deleteEmployeeById") @DELETE public void deleteEmployeeById(@QueryParam("id") int id)
    • aggregate

      @Path("/aggregate") @POST public void aggregate(@QueryParam("name") String name, @QueryParam("address") String address, @QueryParam("id") int id)
    • checkLoadBalancingPolicy

      @Path("/checkLoadBalancingPolicy") @GET @Produces("text/plain") public boolean checkLoadBalancingPolicy() throws Exception
      Throws:
      Exception