public final class TwillSpecification.Builder.RunnableSetter extends Object implements TwillSpecification.Builder.MoreRunnable, TwillSpecification.Builder.AfterRunnable
Constructor and Description |
---|
RunnableSetter() |
Modifier and Type | Method and Description |
---|---|
TwillSpecification.Builder.RuntimeSpecificationAdder |
add(String name,
TwillRunnable runnable)
Adds a
TwillRunnable with ResourceSpecification.BASIC resource specification. |
TwillSpecification.Builder.RuntimeSpecificationAdder |
add(String name,
TwillRunnable runnable,
ResourceSpecification resourceSpec) |
TwillSpecification.Builder.RuntimeSpecificationAdder |
add(TwillRunnable runnable) |
TwillSpecification.Builder.RuntimeSpecificationAdder |
add(TwillRunnable runnable,
ResourceSpecification resourceSpec) |
TwillSpecification.Builder.AfterOrder |
anyOrder() |
TwillSpecification.Builder.FirstOrder |
withOrder() |
TwillSpecification.Builder.PlacementPolicySetter |
withPlacementPolicy() |
public TwillSpecification.Builder.RuntimeSpecificationAdder add(TwillRunnable runnable)
add
in interface TwillSpecification.Builder.MoreRunnable
public TwillSpecification.Builder.RuntimeSpecificationAdder add(TwillRunnable runnable, ResourceSpecification resourceSpec)
add
in interface TwillSpecification.Builder.MoreRunnable
public TwillSpecification.Builder.RuntimeSpecificationAdder add(String name, TwillRunnable runnable)
TwillSpecification.Builder.MoreRunnable
TwillRunnable
with ResourceSpecification.BASIC
resource specification.add
in interface TwillSpecification.Builder.MoreRunnable
name
- Name of runnablerunnable
- TwillRunnable
to be runTwillSpecification.Builder.RuntimeSpecificationAdder
public TwillSpecification.Builder.RuntimeSpecificationAdder add(String name, TwillRunnable runnable, ResourceSpecification resourceSpec)
add
in interface TwillSpecification.Builder.MoreRunnable
public TwillSpecification.Builder.FirstOrder withOrder()
withOrder
in interface TwillSpecification.Builder.AfterRunnable
public TwillSpecification.Builder.AfterOrder anyOrder()
anyOrder
in interface TwillSpecification.Builder.AfterRunnable
public TwillSpecification.Builder.PlacementPolicySetter withPlacementPolicy()
withPlacementPolicy
in interface TwillSpecification.Builder.AfterRunnable
Copyright © 2013-2016 The Apache Software Foundation. All rights reserved.