Package io.micronaut.gcp.pubsub.bind
Interface SubscriberFactory
- All Known Implementing Classes:
DefaultSubscriberFactory
public interface SubscriberFactory
Factory to create
SubscriberInterface
using default configurations.- Since:
- 2.0.0
- Author:
- Vinicius Carvalho
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.cloud.pubsub.v1.SubscriberInterface
Creates anSubscriberInterface
implementation and register the receiver to it.
-
Method Details
-
createSubscriber
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
-