当前位置: 首页>>代码示例>>Java>>正文


Java ActiveMQBuffer.readLong方法代码示例

本文整理汇总了Java中org.apache.activemq.artemis.api.core.ActiveMQBuffer.readLong方法的典型用法代码示例。如果您正苦于以下问题:Java ActiveMQBuffer.readLong方法的具体用法?Java ActiveMQBuffer.readLong怎么用?Java ActiveMQBuffer.readLong使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.activemq.artemis.api.core.ActiveMQBuffer的用法示例。


在下文中一共展示了ActiveMQBuffer.readLong方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: decodeRest

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void decodeRest(final ActiveMQBuffer buffer) {
   this.nodeID = buffer.readString();
   this.backupGroupName = buffer.readNullableString();
   this.backup = buffer.readBoolean();
   this.currentEventID = buffer.readLong();
   if (buffer.readBoolean()) {
      connector = new TransportConfiguration();
      connector.decode(buffer);
   }
   if (buffer.readBoolean()) {
      backupConnector = new TransportConfiguration();
      backupConnector.decode(buffer);
   }
   scaleDownGroupName = buffer.readNullableString();
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:17,代码来源:NodeAnnounceMessage.java

示例2: readNullableLong

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
public static Long readNullableLong(ActiveMQBuffer buffer) {
   boolean isNotNull = buffer.readBoolean();

   if (isNotNull) {
      return buffer.readLong();
   } else {
      return null;
   }
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:10,代码来源:BufferHelper.java

示例3: decodeRest

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void decodeRest(final ActiveMQBuffer buffer) {
   id = buffer.readLong();
   queueName = buffer.readSimpleString();
   filterString = buffer.readNullableSimpleString();
   browseOnly = buffer.readBoolean();
   requiresResponse = buffer.readBoolean();
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:9,代码来源:SessionCreateConsumerMessage.java

示例4: decode

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public Message decode(ActiveMQBuffer buffer, Message record) {
   long id = buffer.readLong();
   long format = buffer.readLong();
   SimpleString address = buffer.readNullableSimpleString();
   record = new AMQPMessage(format);
   record.reloadPersistence(buffer);
   record.setMessageID(id);
   if (address != null) {
      record.setAddress(address);
   }
   return record;
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:14,代码来源:AMQPMessagePersister.java

示例5: decodeRest

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void decodeRest(final ActiveMQBuffer buffer) {
   journalID = buffer.readByte();
   operation = ADD_OPERATION_TYPE.toOperation(buffer.readBoolean());
   txId = buffer.readLong();
   id = buffer.readLong();
   recordType = buffer.readByte();
   final int recordDataSize = buffer.readInt();
   recordData = new byte[recordDataSize];
   buffer.readBytes(recordData);
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:12,代码来源:ReplicationAddTXMessage.java

示例6: decodeRest

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void decodeRest(final ActiveMQBuffer buffer) {
   consumerID = buffer.readLong();
   deliveryCount = buffer.readInt();
   largeMessageSize = buffer.readLong();
   ((CoreMessage)message).decodeHeadersAndProperties(buffer.byteBuf());
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:8,代码来源:SessionReceiveLargeMessage.java

示例7: decodeRest

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void decodeRest(final ActiveMQBuffer buffer) {
   // Buffer comes in after having read standard headers and positioned at Beginning of body part

   receiveMessage(copyMessageBuffer(buffer.byteBuf(), DataConstants.SIZE_LONG + DataConstants.SIZE_INT));

   buffer.readerIndex(buffer.capacity() - DataConstants.SIZE_LONG - DataConstants.SIZE_INT);
   this.consumerID = buffer.readLong();
   this.deliveryCount = buffer.readInt();
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:11,代码来源:SessionReceiveMessage.java

示例8: decodeRest

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void decodeRest(final ActiveMQBuffer buffer) {
   consumerID = buffer.readLong();

   messageID = buffer.readLong();

   requiresResponse = buffer.readBoolean();
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:9,代码来源:SessionAcknowledgeMessage.java

示例9: decodeRest

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void decodeRest(final ActiveMQBuffer buffer) {
   super.decodeRest(buffer);
   if (!continues) {
      messageBodySize = buffer.readLong();
   }
   requiresResponse = buffer.readBoolean();
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:9,代码来源:SessionSendContinuationMessage.java

示例10: decodeRest

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void decodeRest(final ActiveMQBuffer buffer) {
   journalID = buffer.readByte();
   operation = ADD_OPERATION_TYPE.toOperation(buffer.readBoolean());
   id = buffer.readLong();
   journalRecordType = buffer.readByte();
   final int recordDataSize = buffer.readInt();
   recordData = new byte[recordDataSize];
   buffer.readBytes(recordData);
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:11,代码来源:ReplicationAddMessage.java

示例11: decodeRest

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void decodeRest(final ActiveMQBuffer buffer) {
   name = buffer.readString();
   sessionChannelID = buffer.readLong();
   version = buffer.readInt();
   username = buffer.readNullableString();
   password = buffer.readNullableString();
   minLargeMessageSize = buffer.readInt();
   xa = buffer.readBoolean();
   autoCommitSends = buffer.readBoolean();
   autoCommitAcks = buffer.readBoolean();
   windowSize = buffer.readInt();
   preAcknowledge = buffer.readBoolean();
   defaultAddress = buffer.readNullableString();
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:16,代码来源:CreateSessionMessage.java

示例12: bytesReadLong

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
public static long bytesReadLong(ActiveMQBuffer message) {
   return message.readLong();
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:4,代码来源:BytesMessageUtil.java

示例13: decode

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void decode(final ActiveMQBuffer buffer) {
   largeMessageID = buffer.readLong();
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:5,代码来源:PendingLargeMessageEncoding.java

示例14: decode

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void decode(final ActiveMQBuffer buffer) {
   queueID = buffer.readLong();
   count = buffer.readInt();
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:6,代码来源:DeliveryCountUpdateEncoding.java

示例15: decodeRest

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void decodeRest(final ActiveMQBuffer buffer) {
   consumerID = buffer.readLong();

   messageID = buffer.readLong();
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:7,代码来源:SessionExpireMessage.java


注:本文中的org.apache.activemq.artemis.api.core.ActiveMQBuffer.readLong方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。