Package org.symphonyoss.s2.fugue.pubsub
Class QueueSubscription.Builder
- java.lang.Object
-
- org.symphonyoss.s2.common.fluent.Fluent<T>
-
- org.symphonyoss.s2.common.fluent.BaseAbstractBuilder<T,B>
-
- org.symphonyoss.s2.fugue.pubsub.QueueSubscriptionAdmin.AbstractBuilder<QueueSubscription.Builder,QueueSubscription>
-
- org.symphonyoss.s2.fugue.pubsub.QueueSubscription.Builder
-
- All Implemented Interfaces:
org.symphonyoss.s2.common.fluent.IBuilder<QueueSubscription.Builder,QueueSubscription>,org.symphonyoss.s2.common.fluent.IFluent<QueueSubscription.Builder>
- Enclosing class:
- QueueSubscription
public static class QueueSubscription.Builder extends QueueSubscriptionAdmin.AbstractBuilder<QueueSubscription.Builder,QueueSubscription>
Builder.- Author:
- Bruce Skingle
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected QueueSubscriptionconstruct()protected voidvalidate(org.symphonyoss.s2.common.fault.FaultAccumulator faultAccumulator)QueueSubscription.BuilderwithConsumer(org.symphonyoss.s2.fugue.pipeline.IThreadSafeRetryableConsumer<String> consumer)Set the consumer for the subscription.-
Methods inherited from class org.symphonyoss.s2.fugue.pubsub.QueueSubscriptionAdmin.AbstractBuilder
withSubscriptionNames
-
-
-
-
Method Detail
-
withConsumer
public QueueSubscription.Builder withConsumer(org.symphonyoss.s2.fugue.pipeline.IThreadSafeRetryableConsumer<String> consumer)
Set the consumer for the subscription.- Parameters:
consumer- A consumer for received messages.- Returns:
- this (fluent method)
-
validate
protected void validate(org.symphonyoss.s2.common.fault.FaultAccumulator faultAccumulator)
- Overrides:
validatein classQueueSubscriptionAdmin.AbstractBuilder<QueueSubscription.Builder,QueueSubscription>
-
construct
protected QueueSubscription construct()
- Specified by:
constructin classorg.symphonyoss.s2.common.fluent.BaseAbstractBuilder<QueueSubscription.Builder,QueueSubscription>
-
-