public class InstrumentStateBuilder extends Object
InstrumentState
.Modifier and Type | Method and Description |
---|---|
com.addicticks.avenuemq.dto.InstrumentState |
build() |
static InstrumentStateBuilder |
builder()
Creates a new builder.
|
InstrumentStateBuilder |
withSourceState(com.addicticks.avenuemq.dto.SourceState sourceState)
Sets the source state.
|
InstrumentStateBuilder |
withState(com.addicticks.avenuemq.dto.InstrumentState.StateType state)
Sets the state.
|
InstrumentStateBuilder |
withStopReason(com.addicticks.avenuemq.dto.InstrumentState.StopReasonType stopReason)
Sets the stop reason.
|
InstrumentStateBuilder |
withText(String text)
Sets some informative text about the state.
|
public static InstrumentStateBuilder builder()
public InstrumentStateBuilder withState(com.addicticks.avenuemq.dto.InstrumentState.StateType state)
public InstrumentStateBuilder withText(String text)
public InstrumentStateBuilder withSourceState(com.addicticks.avenuemq.dto.SourceState sourceState)
public InstrumentStateBuilder withStopReason(com.addicticks.avenuemq.dto.InstrumentState.StopReasonType stopReason)
STOPPED
.public com.addicticks.avenuemq.dto.InstrumentState build()
Copyright © 2019 Addicticks. All rights reserved.