As configured, each message is replicated once in another grid JVM and will be processed there if a primary partition goes down.
根据配置,每条消息都将在另一个网格jvm中复制一次并在主分区停用时在那里处理。
This example will dispatch a message into the grid, identify which grid partition has been assigned to process the message, and return that information back to the dispatcher.
这个示例将把一条消息发送到一个网格中,识别已指定哪个网格分区来处理该消息,并将该信息返回消息发送者。
The code in Listing 3 shows a blocking call, in which the client waits until the messsage has been processed to report which grid partition was chosen to consume the message.
清单 3 中的代码展示了一个阻塞调用,其中客户端将一直等待,直到消息被处理并报告哪个网格分区已被选中来使用该消息。
应用推荐