Class GooglePubsubResource
java.lang.Object
org.apache.camel.quarkus.component.google.pubsub.it.GooglePubsubResource
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) GooglePubSubRoutes.AcKFailing(package private) org.apache.camel.ConsumerTemplate(package private) org.apache.camel.CamelContext(package private) org.apache.camel.ProducerTemplate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponsegetFromEndpoint(String fromEndpoint) mockReceive(String mockName) receiveFromSubscription(String subscriptionName) receiveFromSubscriptionOrdered(String subscriptionName) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponsesendPojoToTopic(String fruitName) jakarta.ws.rs.core.ResponsesendStringToTopic(String message) jakarta.ws.rs.core.ResponsesentToEndpoint(String message, String toEndpoint) jakarta.ws.rs.core.ResponsesetFail(boolean fail) void
-
Field Details
-
producerTemplate
@Inject org.apache.camel.ProducerTemplate producerTemplate -
consumerTemplate
@Inject org.apache.camel.ConsumerTemplate consumerTemplate -
context
@Inject org.apache.camel.CamelContext context -
acKFailing
-
-
Constructor Details
-
GooglePubsubResource
public GooglePubsubResource()
-
-
Method Details
-
sendStringToTopic
-
consumeStringFromTopic
@GET @Produces("application/json") public jakarta.ws.rs.core.Response consumeStringFromTopic() -
sendPojoToTopic
-
consumePojoFromTopic
@Path("/pojo") @GET @Produces("application/json") public jakarta.ws.rs.core.Response consumePojoFromTopic() -
sentToEndpoint
@Path("/sendToEndpoint") @POST public jakarta.ws.rs.core.Response sentToEndpoint(String message, @QueryParam("toEndpoint") String toEndpoint) throws Exception - Throws:
Exception
-
getFromEndpoint
@Path("/getFromEndpoint") @GET @Produces("text/plain") public String getFromEndpoint(@QueryParam("fromEndpoint") String fromEndpoint) throws Exception - Throws:
Exception
-
receiveFromSubscription
@Path("receive/subscription/{subscriptionName}") @GET @Produces("text/plain") public String receiveFromSubscription(@PathParam("subscriptionName") String subscriptionName) throws Exception - Throws:
Exception
-
receiveFromSubscriptionOrdered
@Path("receive/subscriptionOrdering/{subscriptionName}") @GET @Produces("text/plain") public String receiveFromSubscriptionOrdered(@PathParam("subscriptionName") String subscriptionName) throws Exception - Throws:
Exception
-
mockReceive
@Path("receive/mock/{mockName}") @GET @Produces("text/plain") public String mockReceive(@PathParam("mockName") String mockName) throws Exception - Throws:
Exception
-
setFail
- Throws:
Exception
-
stopConsumer
- Throws:
Exception
-
resetMock
@Path("/resetMock/{mockName}") @GET public jakarta.ws.rs.core.Response resetMock(@PathParam("mockName") String mockName)
-