Interface GatewayInterface.MessagePrinter
- All Known Implementing Classes:
 GatewayInterface.AbstractMessagePrinter,GatewayInterface.BasicMessage,GatewayInterface.InvokeMessage,MessageBuilder,RunPrepStmtMessage,RunUpdateQueryMessage
- Enclosing class:
 - GatewayInterface
 
public static interface GatewayInterface.MessagePrinter
A MessagePrinter simply prints its message to an outputstream. This is used as an alternative to a String based
 message in cases where we don't want to incur the overhead of creating String objects, opting instead to stream
 the message in pieces. It can also specify a min connection mode needed to run.
- 
Method Summary
Modifier and TypeMethodDescriptionintMinimum connection mode needed to run, or zero to always run.A stat metric to update when this message finishes.void 
- 
Method Details
- 
printMessage
- Throws:
 IOException
 - 
getMinConnectionMode
int getMinConnectionMode()Minimum connection mode needed to run, or zero to always run. - 
getStatMetric
StatMetric getStatMetric()A stat metric to update when this message finishes. Optional, may be null. 
 -