Class GoogleAsyncSubscriberManager.Builder
- java.lang.Object
-
- org.symphonyoss.s2.common.fluent.Fluent<T>
-
- org.symphonyoss.s2.common.fluent.BaseAbstractBuilder<T,B>
-
- org.symphonyoss.s2.fugue.pubsub.AbstractSubscriberBase.Builder<P,T,B>
-
- org.symphonyoss.s2.fugue.google.pubsub.GoogleAsyncSubscriberManager.Builder
-
- All Implemented Interfaces:
org.symphonyoss.s2.common.fluent.IBuilder<GoogleAsyncSubscriberManager.Builder,GoogleAsyncSubscriberManager>,org.symphonyoss.s2.common.fluent.IFluent<GoogleAsyncSubscriberManager.Builder>,org.symphonyoss.s2.fugue.pubsub.ISubscriberManagerBuilder<org.symphonyoss.s2.common.immutable.ImmutableByteArray,GoogleAsyncSubscriberManager.Builder,GoogleAsyncSubscriberManager>
- Enclosing class:
- GoogleAsyncSubscriberManager
public static class GoogleAsyncSubscriberManager.Builder extends org.symphonyoss.s2.fugue.pubsub.AbstractSubscriberBase.Builder<P,T,B>Concrete builder.- Author:
- Bruce Skingle
-
-
Constructor Summary
Constructors Constructor Description Builder(org.symphonyoss.s2.fugue.naming.INameFactory nameFactory, org.symphonyoss.s2.fugue.core.trace.ITraceContextTransactionFactory traceFactory, org.symphonyoss.s2.fugue.pipeline.IThreadSafeErrorConsumer<org.symphonyoss.s2.common.immutable.ImmutableByteArray> unprocessableMessageConsumer, org.symphonyoss.s2.fugue.config.IConfiguration config, String projectId)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected GoogleAsyncSubscriberManagerconstruct()voidvalidate(org.symphonyoss.s2.common.fault.FaultAccumulator faultAccumulator)GoogleAsyncSubscriberManager.BuilderwithProjectId(String projectId)Set the Google project ID.-
Methods inherited from class org.symphonyoss.s2.fugue.pubsub.AbstractSubscriberBase.Builder
withNameFactory
-
-
-
-
Constructor Detail
-
Builder
public Builder(org.symphonyoss.s2.fugue.naming.INameFactory nameFactory, org.symphonyoss.s2.fugue.core.trace.ITraceContextTransactionFactory traceFactory, org.symphonyoss.s2.fugue.pipeline.IThreadSafeErrorConsumer<org.symphonyoss.s2.common.immutable.ImmutableByteArray> unprocessableMessageConsumer, org.symphonyoss.s2.fugue.config.IConfiguration config, String projectId)Constructor.- Parameters:
nameFactory- A NameFactory.traceFactory- A trace context factory.unprocessableMessageConsumer- Consumer for invalid messages.config- ConfigurationprojectId- The Google project ID for the pubsub service.
-
-
Method Detail
-
withProjectId
public GoogleAsyncSubscriberManager.Builder withProjectId(String projectId)
Set the Google project ID.- Parameters:
projectId- The ID of the Google project in which to operate.- Returns:
- this (fluent method)
-
validate
public void validate(org.symphonyoss.s2.common.fault.FaultAccumulator faultAccumulator)
-
construct
protected GoogleAsyncSubscriberManager construct()
- Specified by:
constructin classorg.symphonyoss.s2.common.fluent.BaseAbstractBuilder<GoogleAsyncSubscriberManager.Builder,GoogleAsyncSubscriberManager>
-
-