Class GcpPubSubProperties

java.lang.Object
com.google.cloud.spring.pubsub.core.PubSubConfiguration
com.google.cloud.spring.autoconfigure.pubsub.GcpPubSubProperties
All Implemented Interfaces:
CredentialsSupplier

@ConfigurationProperties("spring.cloud.gcp.pubsub") public class GcpPubSubProperties extends PubSubConfiguration implements CredentialsSupplier
Properties for Pub/Sub.
  • Constructor Details

    • GcpPubSubProperties

      public GcpPubSubProperties()
  • Method Details

    • getProjectId

      public String getProjectId()
    • setProjectId

      public void setProjectId(String projectId)
    • getCredentials

      public Credentials getCredentials()
      Description copied from interface: CredentialsSupplier
      Supplies credentials configuration.
      Specified by:
      getCredentials in interface CredentialsSupplier
      Returns:
      a POJO containing Google Cloud credentials location and scopes
    • getEmulatorHost

      public String getEmulatorHost()
    • setEmulatorHost

      public void setEmulatorHost(String emulatorHost)
      Set the emulator host.
      Parameters:
      emulatorHost - the emulator host.
    • getKeepAliveIntervalMinutes

      public int getKeepAliveIntervalMinutes()
    • setKeepAliveIntervalMinutes

      public void setKeepAliveIntervalMinutes(int keepAliveIntervalMinutes)