org.jgroups.util.Util.readMessageBatch()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(172)

本文整理了Java中org.jgroups.util.Util.readMessageBatch()方法的一些代码示例,展示了Util.readMessageBatch()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.readMessageBatch()方法的具体详情如下:
包路径:org.jgroups.util.Util
类名称:Util
方法名:readMessageBatch

Util.readMessageBatch介绍

[英]Reads a list of messages into 4 MessageBatches:

  1. regular
  2. OOB
  3. INTERNAL-OOB (INTERNAL and OOB)
  4. INTERNAL (INTERNAL)
    [中]

代码示例

代码示例来源:origin: wildfly/wildfly

  1. final MessageBatch[] batches=Util.readMessageBatch(dis,multicast);
  2. for(MessageBatch batch: batches) {
  3. if(batch != null)

代码示例来源:origin: wildfly/wildfly

  1. protected void handleMessageBatch(DataInput in, boolean multicast) {
  2. try {
  3. final MessageBatch[] batches=Util.readMessageBatch(in, multicast);
  4. final MessageBatch batch=batches[0], oob_batch=batches[1], internal_batch_oob=batches[2], internal_batch=batches[3];
  5. processBatch(oob_batch, true, false);
  6. processBatch(batch, false, false);
  7. processBatch(internal_batch_oob, true, true);
  8. processBatch(internal_batch, false, true);
  9. }
  10. catch(Throwable t) {
  11. log.error(String.format(Util.getMessage("IncomingMsgFailure"), local_addr), t);
  12. }
  13. }

代码示例来源:origin: org.jboss.eap/wildfly-client-all

  1. final MessageBatch[] batches=Util.readMessageBatch(dis,multicast);
  2. for(MessageBatch batch: batches) {
  3. if(batch != null)

代码示例来源:origin: org.jboss.eap/wildfly-client-all

  1. protected void handleMessageBatch(DataInput in, boolean multicast) {
  2. try {
  3. final MessageBatch[] batches=Util.readMessageBatch(in, multicast);
  4. final MessageBatch batch=batches[0], oob_batch=batches[1], internal_batch_oob=batches[2], internal_batch=batches[3];
  5. processBatch(oob_batch, true, false);
  6. processBatch(batch, false, false);
  7. processBatch(internal_batch_oob, true, true);
  8. processBatch(internal_batch, false, true);
  9. }
  10. catch(Throwable t) {
  11. log.error(String.format(Util.getMessage("IncomingMsgFailure"), local_addr), t);
  12. }
  13. }

相关文章

Util类方法