org.apache.activemq.command.Message.isRecievedByDFBridge()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(12.9k)|赞(0)|评价(0)|浏览(241)

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

Message.isRecievedByDFBridge介绍

暂无

代码示例

代码示例来源:origin: apache/activemq

  1. private static final boolean isAsync(Message message) {
  2. return message.isRecievedByDFBridge() || message.getMessageId().getFutureOrSequenceLong() instanceof Future;
  3. }

代码示例来源:origin: apache/activemq

  1. public static boolean gotToTheStore(Message message) throws Exception {
  2. if (message.isRecievedByDFBridge()) {
  3. // concurrent store and dispatch - wait to see if the message gets to the store to see
  4. // if the index suppressed it (original still present), or whether it was stored and needs to be removed
  5. Object possibleFuture = message.getMessageId().getFutureOrSequenceLong();
  6. if (possibleFuture instanceof Future) {
  7. try {
  8. ((Future) possibleFuture).get();
  9. } catch (Exception okToErrorOrCancelStoreOp) {}
  10. }
  11. // need to access again after wait on future
  12. Object sequence = message.getMessageId().getFutureOrSequenceLong();
  13. return (sequence != null && sequence instanceof Long && Long.compare((Long) sequence, -1l) != 0);
  14. }
  15. return true;
  16. }

代码示例来源:origin: apache/activemq

  1. looseMarshalCachedObject(wireFormat, (DataStructure)info.getTransactionId(), dataOut);
  2. looseMarshalCachedObject(wireFormat, (DataStructure)info.getOriginalDestination(), dataOut);
  3. looseMarshalNestedObject(wireFormat, (DataStructure)info.getMessageId(), dataOut);
  4. looseMarshalCachedObject(wireFormat, (DataStructure)info.getOriginalTransactionId(), dataOut);
  5. looseMarshalString(info.getGroupID(), dataOut);
  6. looseMarshalLong(wireFormat, info.getArrival(), dataOut);
  7. looseMarshalString(info.getUserID(), dataOut);
  8. dataOut.writeBoolean(info.isRecievedByDFBridge());
  9. dataOut.writeBoolean(info.isDroppable());

代码示例来源:origin: apache/activemq

  1. looseMarshalCachedObject(wireFormat, (DataStructure)info.getTransactionId(), dataOut);
  2. looseMarshalCachedObject(wireFormat, (DataStructure)info.getOriginalDestination(), dataOut);
  3. looseMarshalNestedObject(wireFormat, (DataStructure)info.getMessageId(), dataOut);
  4. looseMarshalCachedObject(wireFormat, (DataStructure)info.getOriginalTransactionId(), dataOut);
  5. looseMarshalString(info.getGroupID(), dataOut);
  6. looseMarshalLong(wireFormat, info.getArrival(), dataOut);
  7. looseMarshalString(info.getUserID(), dataOut);
  8. dataOut.writeBoolean(info.isRecievedByDFBridge());
  9. dataOut.writeBoolean(info.isDroppable());
  10. looseMarshalObjectArray(wireFormat, info.getCluster(), dataOut);

代码示例来源:origin: apache/activemq

  1. looseMarshalCachedObject(wireFormat, (DataStructure)info.getTransactionId(), dataOut);
  2. looseMarshalCachedObject(wireFormat, (DataStructure)info.getOriginalDestination(), dataOut);
  3. looseMarshalNestedObject(wireFormat, (DataStructure)info.getMessageId(), dataOut);
  4. looseMarshalCachedObject(wireFormat, (DataStructure)info.getOriginalTransactionId(), dataOut);
  5. looseMarshalString(info.getGroupID(), dataOut);
  6. looseMarshalLong(wireFormat, info.getArrival(), dataOut);
  7. looseMarshalString(info.getUserID(), dataOut);
  8. dataOut.writeBoolean(info.isRecievedByDFBridge());
  9. dataOut.writeBoolean(info.isDroppable());
  10. looseMarshalObjectArray(wireFormat, info.getCluster(), dataOut);

代码示例来源:origin: apache/activemq

  1. looseMarshalCachedObject(wireFormat, (DataStructure)info.getTransactionId(), dataOut);
  2. looseMarshalCachedObject(wireFormat, (DataStructure)info.getOriginalDestination(), dataOut);
  3. looseMarshalNestedObject(wireFormat, (DataStructure)info.getMessageId(), dataOut);
  4. looseMarshalCachedObject(wireFormat, (DataStructure)info.getOriginalTransactionId(), dataOut);
  5. looseMarshalString(info.getGroupID(), dataOut);
  6. looseMarshalLong(wireFormat, info.getArrival(), dataOut);
  7. looseMarshalString(info.getUserID(), dataOut);
  8. dataOut.writeBoolean(info.isRecievedByDFBridge());

代码示例来源:origin: apache/activemq

  1. looseMarshalCachedObject(wireFormat, (DataStructure)info.getTransactionId(), dataOut);
  2. looseMarshalCachedObject(wireFormat, (DataStructure)info.getOriginalDestination(), dataOut);
  3. looseMarshalNestedObject(wireFormat, (DataStructure)info.getMessageId(), dataOut);
  4. looseMarshalCachedObject(wireFormat, (DataStructure)info.getOriginalTransactionId(), dataOut);
  5. looseMarshalString(info.getGroupID(), dataOut);
  6. looseMarshalLong(wireFormat, info.getArrival(), dataOut);
  7. looseMarshalString(info.getUserID(), dataOut);
  8. dataOut.writeBoolean(info.isRecievedByDFBridge());
  9. dataOut.writeBoolean(info.isDroppable());
  10. looseMarshalObjectArray(wireFormat, info.getCluster(), dataOut);

代码示例来源:origin: apache/activemq

  1. looseMarshalCachedObject(wireFormat, (DataStructure)info.getTransactionId(), dataOut);
  2. looseMarshalCachedObject(wireFormat, (DataStructure)info.getOriginalDestination(), dataOut);
  3. looseMarshalNestedObject(wireFormat, (DataStructure)info.getMessageId(), dataOut);
  4. looseMarshalCachedObject(wireFormat, (DataStructure)info.getOriginalTransactionId(), dataOut);
  5. looseMarshalString(info.getGroupID(), dataOut);
  6. looseMarshalLong(wireFormat, info.getArrival(), dataOut);
  7. looseMarshalString(info.getUserID(), dataOut);
  8. dataOut.writeBoolean(info.isRecievedByDFBridge());
  9. dataOut.writeBoolean(info.isDroppable());
  10. looseMarshalObjectArray(wireFormat, info.getCluster(), dataOut);

代码示例来源:origin: apache/activemq

  1. looseMarshalCachedObject(wireFormat, (DataStructure)info.getTransactionId(), dataOut);
  2. looseMarshalCachedObject(wireFormat, (DataStructure)info.getOriginalDestination(), dataOut);
  3. looseMarshalNestedObject(wireFormat, (DataStructure)info.getMessageId(), dataOut);
  4. looseMarshalCachedObject(wireFormat, (DataStructure)info.getOriginalTransactionId(), dataOut);
  5. looseMarshalString(info.getGroupID(), dataOut);
  6. looseMarshalLong(wireFormat, info.getArrival(), dataOut);
  7. looseMarshalString(info.getUserID(), dataOut);
  8. dataOut.writeBoolean(info.isRecievedByDFBridge());
  9. dataOut.writeBoolean(info.isDroppable());
  10. looseMarshalObjectArray(wireFormat, info.getCluster(), dataOut);

代码示例来源:origin: apache/activemq

  1. looseMarshalCachedObject(wireFormat, (DataStructure)info.getTransactionId(), dataOut);
  2. looseMarshalCachedObject(wireFormat, (DataStructure)info.getOriginalDestination(), dataOut);
  3. looseMarshalNestedObject(wireFormat, (DataStructure)info.getMessageId(), dataOut);
  4. looseMarshalCachedObject(wireFormat, (DataStructure)info.getOriginalTransactionId(), dataOut);
  5. looseMarshalString(info.getGroupID(), dataOut);
  6. looseMarshalLong(wireFormat, info.getArrival(), dataOut);
  7. looseMarshalString(info.getUserID(), dataOut);
  8. dataOut.writeBoolean(info.isRecievedByDFBridge());
  9. dataOut.writeBoolean(info.isDroppable());
  10. looseMarshalObjectArray(wireFormat, info.getCluster(), dataOut);

代码示例来源:origin: apache/activemq

  1. looseMarshalCachedObject(wireFormat, (DataStructure)info.getTransactionId(), dataOut);
  2. looseMarshalCachedObject(wireFormat, (DataStructure)info.getOriginalDestination(), dataOut);
  3. looseMarshalNestedObject(wireFormat, (DataStructure)info.getMessageId(), dataOut);
  4. looseMarshalCachedObject(wireFormat, (DataStructure)info.getOriginalTransactionId(), dataOut);
  5. looseMarshalString(info.getGroupID(), dataOut);
  6. looseMarshalLong(wireFormat, info.getArrival(), dataOut);
  7. looseMarshalString(info.getUserID(), dataOut);
  8. dataOut.writeBoolean(info.isRecievedByDFBridge());
  9. dataOut.writeBoolean(info.isDroppable());
  10. looseMarshalObjectArray(wireFormat, info.getCluster(), dataOut);

代码示例来源:origin: apache/activemq

  1. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getTransactionId(), bs);
  2. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getOriginalDestination(), bs);
  3. rc += tightMarshalNestedObject1(wireFormat, (DataStructure)info.getMessageId(), bs);
  4. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getOriginalTransactionId(), bs);
  5. rc += tightMarshalString1(info.getGroupID(), bs);
  6. rc += tightMarshalLong1(wireFormat, info.getArrival(), bs);
  7. rc += tightMarshalString1(info.getUserID(), bs);
  8. bs.writeBoolean(info.isRecievedByDFBridge());

代码示例来源:origin: apache/activemq

  1. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getTransactionId(), bs);
  2. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getOriginalDestination(), bs);
  3. rc += tightMarshalNestedObject1(wireFormat, (DataStructure)info.getMessageId(), bs);
  4. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getOriginalTransactionId(), bs);
  5. rc += tightMarshalString1(info.getGroupID(), bs);
  6. rc += tightMarshalLong1(wireFormat, info.getArrival(), bs);
  7. rc += tightMarshalString1(info.getUserID(), bs);
  8. bs.writeBoolean(info.isRecievedByDFBridge());
  9. bs.writeBoolean(info.isDroppable());

代码示例来源:origin: apache/activemq

  1. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getTransactionId(), bs);
  2. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getOriginalDestination(), bs);
  3. rc += tightMarshalNestedObject1(wireFormat, (DataStructure)info.getMessageId(), bs);
  4. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getOriginalTransactionId(), bs);
  5. rc += tightMarshalString1(info.getGroupID(), bs);
  6. rc+=tightMarshalLong1(wireFormat, info.getArrival(), bs);
  7. rc += tightMarshalString1(info.getUserID(), bs);
  8. bs.writeBoolean(info.isRecievedByDFBridge());
  9. bs.writeBoolean(info.isDroppable());
  10. rc += tightMarshalObjectArray1(wireFormat, info.getCluster(), bs);

代码示例来源:origin: apache/activemq

  1. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getTransactionId(), bs);
  2. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getOriginalDestination(), bs);
  3. rc += tightMarshalNestedObject1(wireFormat, (DataStructure)info.getMessageId(), bs);
  4. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getOriginalTransactionId(), bs);
  5. rc += tightMarshalString1(info.getGroupID(), bs);
  6. rc+=tightMarshalLong1(wireFormat, info.getArrival(), bs);
  7. rc += tightMarshalString1(info.getUserID(), bs);
  8. bs.writeBoolean(info.isRecievedByDFBridge());
  9. bs.writeBoolean(info.isDroppable());
  10. rc += tightMarshalObjectArray1(wireFormat, info.getCluster(), bs);

代码示例来源:origin: apache/activemq

  1. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getTransactionId(), bs);
  2. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getOriginalDestination(), bs);
  3. rc += tightMarshalNestedObject1(wireFormat, (DataStructure)info.getMessageId(), bs);
  4. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getOriginalTransactionId(), bs);
  5. rc += tightMarshalString1(info.getGroupID(), bs);
  6. rc+=tightMarshalLong1(wireFormat, info.getArrival(), bs);
  7. rc += tightMarshalString1(info.getUserID(), bs);
  8. bs.writeBoolean(info.isRecievedByDFBridge());
  9. bs.writeBoolean(info.isDroppable());
  10. rc += tightMarshalObjectArray1(wireFormat, info.getCluster(), bs);

代码示例来源:origin: apache/activemq

  1. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getTransactionId(), bs);
  2. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getOriginalDestination(), bs);
  3. rc += tightMarshalNestedObject1(wireFormat, (DataStructure)info.getMessageId(), bs);
  4. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getOriginalTransactionId(), bs);
  5. rc += tightMarshalString1(info.getGroupID(), bs);
  6. rc += tightMarshalLong1(wireFormat, info.getArrival(), bs);
  7. rc += tightMarshalString1(info.getUserID(), bs);
  8. bs.writeBoolean(info.isRecievedByDFBridge());
  9. bs.writeBoolean(info.isDroppable());
  10. rc += tightMarshalObjectArray1(wireFormat, info.getCluster(), bs);

代码示例来源:origin: apache/activemq

  1. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getTransactionId(), bs);
  2. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getOriginalDestination(), bs);
  3. rc += tightMarshalNestedObject1(wireFormat, (DataStructure)info.getMessageId(), bs);
  4. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getOriginalTransactionId(), bs);
  5. rc += tightMarshalString1(info.getGroupID(), bs);
  6. rc+=tightMarshalLong1(wireFormat, info.getArrival(), bs);
  7. rc += tightMarshalString1(info.getUserID(), bs);
  8. bs.writeBoolean(info.isRecievedByDFBridge());
  9. bs.writeBoolean(info.isDroppable());
  10. rc += tightMarshalObjectArray1(wireFormat, info.getCluster(), bs);

代码示例来源:origin: apache/activemq

  1. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getTransactionId(), bs);
  2. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getOriginalDestination(), bs);
  3. rc += tightMarshalNestedObject1(wireFormat, (DataStructure)info.getMessageId(), bs);
  4. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getOriginalTransactionId(), bs);
  5. rc += tightMarshalString1(info.getGroupID(), bs);
  6. rc+=tightMarshalLong1(wireFormat, info.getArrival(), bs);
  7. rc += tightMarshalString1(info.getUserID(), bs);
  8. bs.writeBoolean(info.isRecievedByDFBridge());
  9. bs.writeBoolean(info.isDroppable());
  10. rc += tightMarshalObjectArray1(wireFormat, info.getCluster(), bs);

代码示例来源:origin: apache/activemq

  1. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getTransactionId(), bs);
  2. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getOriginalDestination(), bs);
  3. rc += tightMarshalNestedObject1(wireFormat, (DataStructure)info.getMessageId(), bs);
  4. rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getOriginalTransactionId(), bs);
  5. rc += tightMarshalString1(info.getGroupID(), bs);
  6. rc+=tightMarshalLong1(wireFormat, info.getArrival(), bs);
  7. rc += tightMarshalString1(info.getUserID(), bs);
  8. bs.writeBoolean(info.isRecievedByDFBridge());
  9. bs.writeBoolean(info.isDroppable());
  10. rc += tightMarshalObjectArray1(wireFormat, info.getCluster(), bs);

相关文章

Message类方法