@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value={io.grpc.ManagedChannel.class,PubSubTemplate.class}) @ConditionalOnProperty(prefix="spring.cloud.gcp.pubsub", name="enabled", matchIfMissing=true) @AutoConfigureBefore(value=GcpPubSubAutoConfiguration.class) @EnableConfigurationProperties(value=GcpPubSubProperties.class) public class GcpPubSubEmulatorAutoConfiguration extends Object
spring.cloud.gcp.pubsub.emulator-host
is set, spring stream will connect
to a running pub/sub emulator.Constructor and Description |
---|
GcpPubSubEmulatorAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
closeManagedChannel() |
com.google.api.gax.rpc.TransportChannelProvider |
transportChannelProvider(GcpPubSubProperties gcpPubSubProperties) |
@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)
@PreDestroy public void closeManagedChannel()
Copyright © 2021. All rights reserved.