Class CassandraqlResource
java.lang.Object
org.apache.camel.quarkus.component.cassandraql.it.CassandraqlResource
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) org.apache.camel.CamelContext(package private) org.apache.camel.ConsumerTemplatestatic final String(package private) org.apache.camel.FluentProducerTemplate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleancqlHeaderQuery(int id, String cql, boolean queryAsSimpleStatement) voiddeleteEmployeeById(int id) getEmployee(int id) getEmployeeWithStrategy(int id) voidinsertEmployee(String name, String address, int id, String endpointUri) booleanupdateEmployee(String name, String address, int id)
-
Field Details
-
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
-
getEmployee
@Path("/getEmployee") @GET @Produces("text/plain") public String getEmployee(@QueryParam("id") int id) -
cqlHeaderQuery
-
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
-
deleteEmployeeById
@Path("/deleteEmployeeById") @DELETE public void deleteEmployeeById(@QueryParam("id") int id) -
aggregate
-
checkLoadBalancingPolicy
@Path("/checkLoadBalancingPolicy") @GET @Produces("text/plain") public boolean checkLoadBalancingPolicy() throws Exception- Throws:
Exception
-