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.int
Minimum 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:
printMessage
in interfaceGatewayInterface.MessagePrinter
- Throws:
IOException
-
getMinConnectionMode
public int getMinConnectionMode()Description copied from interface:GatewayInterface.MessagePrinter
Minimum connection mode needed to run, or zero to always run.- Specified by:
getMinConnectionMode
in interfaceGatewayInterface.MessagePrinter
-
getStatMetric
Description copied from interface:GatewayInterface.MessagePrinter
A stat metric to update when this message finishes. Optional, may be null.- Specified by:
getStatMetric
in interfaceGatewayInterface.MessagePrinter
-