Class CassandraqlResource
- java.lang.Object
-
- org.apache.camel.quarkus.component.cassandraql.it.CassandraqlResource
-
@Path("/cassandraql") @ApplicationScoped public class CassandraqlResource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.apache.camel.CamelContextcamelContext(package private) org.apache.camel.ConsumerTemplateconsumerTemplatestatic StringEMPTY_LIST(package private) org.apache.camel.FluentProducerTemplateproducerTemplate
-
Constructor Summary
Constructors Constructor Description CassandraqlResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaggregate(String name, String address, int id)booleancheckLoadBalancingPolicy()StringcqlHeaderQuery(int id, String cql, boolean queryAsSimpleStatement)voiddeleteEmployeeById(int id)StringgetAllEmployees()StringgetEmployee(int id)StringgetEmployeeWithStrategy(int id)voidinsertEmployee(String name, String address, int id, String endpointUri)booleanupdateEmployee(String name, String address, int id)
-
-
-
Field Detail
-
EMPTY_LIST
public static final String EMPTY_LIST
- See Also:
- Constant Field Values
-
camelContext
@Inject org.apache.camel.CamelContext camelContext
-
producerTemplate
@Inject org.apache.camel.FluentProducerTemplate producerTemplate
-
consumerTemplate
@Inject org.apache.camel.ConsumerTemplate consumerTemplate
-
-
Method Detail
-
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)
-
-