public static Message buildFlushRequest ( ByteBuffer body ) { ZabMessage . FlushRequest flushReq = ZabMessage . FlushRequest . newBuilder ( ) . setBody ( ByteString . copyFrom ( body ) ) . build ( ) ; return Message . newBuilder ( ) . setType ( MessageType . FLUSH_REQ ) . setFlushRequest ( flushReq ) . build ( ) ; }
Creates a FLUSH_REQ message .