java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.component.salesforce.internal.client.PubSubApiClient
All Implemented Interfaces:
AutoCloseable, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

public class PubSubApiClient extends org.apache.camel.support.service.ServiceSupport
  • Field Details

  • Constructor Details

  • Method Details

    • publishMessage

      public List<PublishResult> publishMessage(String topic, List<?> bodies) throws IOException
      Throws:
      IOException
    • subscribe

      public void subscribe(PubSubApiConsumer consumer, ReplayPreset replayPreset, String initialReplayId)
    • getTopicInfo

      public TopicInfo getTopicInfo(String name)
    • getSchemaJson

      public String getSchemaJson(String schemaId)
    • getSchema

      public org.apache.avro.Schema getSchema(String schemaId)
    • base64EncodeByteString

      public static String base64EncodeByteString(com.google.protobuf.ByteString bs)
    • base64DecodeToByteString

      public static com.google.protobuf.ByteString base64DecodeToByteString(String b64)
    • doStart

      protected void doStart() throws Exception
      Overrides:
      doStart in class org.apache.camel.support.service.BaseService
      Throws:
      Exception
    • doStop

      protected void doStop() throws Exception
      Overrides:
      doStop in class org.apache.camel.support.service.BaseService
      Throws:
      Exception
    • setUsePlainTextConnection

      public void setUsePlainTextConnection(boolean usePlainTextConnection)