Class GcpPubSubEmulatorAutoConfiguration
java.lang.Object
com.google.cloud.spring.autoconfigure.pubsub.GcpPubSubEmulatorAutoConfiguration
@AutoConfiguration
@ConditionalOnClass({io.grpc.ManagedChannel.class,PubSubTemplate.class})
@ConditionalOnProperty(prefix="spring.cloud.gcp.pubsub",
name="enabled",
matchIfMissing=true)
@AutoConfigureBefore(GcpPubSubAutoConfiguration.class)
@EnableConfigurationProperties(GcpPubSubProperties.class)
public class GcpPubSubEmulatorAutoConfiguration
extends Object
If
spring.cloud.gcp.pubsub.emulator-host
is set, spring stream will connect to a
running pub/sub emulator.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
com.google.api.gax.rpc.TransportChannelProvider
transportChannelProvider
(GcpPubSubProperties gcpPubSubProperties)
-
Constructor Details
-
GcpPubSubEmulatorAutoConfiguration
public GcpPubSubEmulatorAutoConfiguration()
-
-
Method Details
-
transportChannelProvider
@Bean(name={"subscriberTransportChannelProvider","publisherTransportChannelProvider"}) @ConditionalOnMissingBean(name={"subscriberTransportChannelProvider","publisherTransportChannelProvider"}) @ConditionalOnProperty(prefix="spring.cloud.gcp.pubsub", name="emulator-host") public com.google.api.gax.rpc.TransportChannelProvider transportChannelProvider(GcpPubSubProperties gcpPubSubProperties) -
closeManagedChannel
@PreDestroy public void closeManagedChannel()
-