Package io.micronaut.gcp.pubsub.bind
Interface SubscriberFactory
-
- All Known Implementing Classes:
DefaultSubscriberFactory
public interface SubscriberFactory
Factory to createSubscriberInterface
using default configurations.- Since:
- 2.0.0
- Author:
- Vinicius Carvalho
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.cloud.pubsub.v1.SubscriberInterface
createSubscriber(SubscriberFactoryConfig config)
Creates anSubscriberInterface
implementation and register the receiver to it.
-
-
-
Method Detail
-
createSubscriber
com.google.cloud.pubsub.v1.SubscriberInterface createSubscriber(SubscriberFactoryConfig config)
Creates anSubscriberInterface
implementation and register the receiver to it. Implementations should also handle start/stop life cycle events.- Parameters:
config
- Configuration to createSubscriber
instances.- Returns:
- An implementation of SubscriberInterface
-
-