Class MessageBuilder
java.lang.Object
com.inductiveautomation.ignition.client.gateway_interface.messages.MessageBuilder
- All Implemented Interfaces:
- GatewayInterface.MessagePrinter
- Direct Known Subclasses:
- RunPrepStmtMessage,- RunUpdateQueryMessage
This class helps build client-to-gateway comm messages. Similar to the createMessage function, but in
 builder-style.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds the message string.intMinimum connection mode needed to run, or zero to always run.A stat metric to update when this message finishes.void
- 
Constructor Details- 
MessageBuilderpublic MessageBuilder(int messageType) 
 
- 
- 
Method Details- 
arg
- 
arg
- 
buildBuilds the message string. If you're using this class as a MessagePrinter, you don't need to call this.
- 
printMessage- Specified by:
- printMessagein interface- GatewayInterface.MessagePrinter
- Throws:
- IOException
 
- 
getMinConnectionModepublic int getMinConnectionMode()Description copied from interface:GatewayInterface.MessagePrinterMinimum connection mode needed to run, or zero to always run.- Specified by:
- getMinConnectionModein interface- GatewayInterface.MessagePrinter
 
- 
getStatMetricDescription copied from interface:GatewayInterface.MessagePrinterA stat metric to update when this message finishes. Optional, may be null.- Specified by:
- getStatMetricin interface- GatewayInterface.MessagePrinter
 
 
-