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 Summary
Constructors -
Method Summary
Modifier 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
-
MessageBuilder
public MessageBuilder(int messageType)
-
-
Method Details
-
arg
-
arg
-
build
Builds the message string. If you're using this class as a MessagePrinter, you don't need to call this. -
printMessage
- Specified by:
printMessagein interfaceGatewayInterface.MessagePrinter- Throws:
IOException
-
getMinConnectionMode
public int getMinConnectionMode()Description copied from interface:GatewayInterface.MessagePrinterMinimum connection mode needed to run, or zero to always run.- Specified by:
getMinConnectionModein interfaceGatewayInterface.MessagePrinter
-
getStatMetric
Description copied from interface:GatewayInterface.MessagePrinterA stat metric to update when this message finishes. Optional, may be null.- Specified by:
getStatMetricin interfaceGatewayInterface.MessagePrinter
-