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


Java ActiveMQBuffer.writeBoolean方法代码示例

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


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

示例1: encode

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

   boolean isLargeMessage = isLargeMessage();

   buffer.writeBoolean(isLargeMessage);

   if (isLargeMessage) {
      buffer.writeInt(LargeMessagePersister.getInstance().getEncodeSize((LargeServerMessage)message));
      LargeMessagePersister.getInstance().encode(buffer, (LargeServerMessage) message);
   } else {
      message.getPersister().encode(buffer, message);
   }

   buffer.writeInt(queueIDs.length);

   for (long queueID : queueIDs) {
      buffer.writeLong(queueID);
   }
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:22,代码来源:PagedMessageImpl.java

示例2: encodeRest

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void encodeRest(final ActiveMQBuffer buffer) {
   buffer.writeBoolean(exit);
   buffer.writeString(nodeID);
   if (!exit) {
      if (pair.getA() != null) {
         buffer.writeBoolean(true);
         pair.getA().encode(buffer);
      } else {
         buffer.writeBoolean(false);
      }
      if (pair.getB() != null) {
         buffer.writeBoolean(true);
         pair.getB().encode(buffer);
      } else {
         buffer.writeBoolean(false);
      }
      buffer.writeBoolean(last);
   }
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:21,代码来源:ClusterTopologyChangeMessage.java

示例3: encodeConfigs

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
public static void encodeConfigs(ActiveMQBuffer buffer,
                                 List<Pair<TransportConfiguration, TransportConfiguration>> configs) {
   buffer.writeInt(configs == null ? 0 : configs.size());
   if (configs != null) {
      for (Pair<TransportConfiguration, TransportConfiguration> pair : configs) {
         encode(buffer, pair.getA());
         boolean backup = (pair.getB() != null);
         buffer.writeBoolean(backup);
         if (backup) {
            encode(buffer, pair.getB());
         }
      }
   }
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:15,代码来源:TransportConfigurationEncodingSupport.java

示例4: writeNullableLong

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
/**
 * @param buffer
 */
public static void writeNullableLong(ActiveMQBuffer buffer, Long value) {
   buffer.writeBoolean(value != null);

   if (value != null) {
      buffer.writeLong(value.longValue());
   }
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:11,代码来源:BufferHelper.java

示例5: writeNullableDouble

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
/**
 * @param buffer
 */
public static void writeNullableDouble(ActiveMQBuffer buffer, Double value) {
   buffer.writeBoolean(value != null);

   if (value != null) {
      buffer.writeDouble(value.doubleValue());
   }
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:11,代码来源:BufferHelper.java

示例6: encodeRest

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void encodeRest(final ActiveMQBuffer buffer) {
   buffer.writeBoolean(exists);
   buffer.writeBoolean(durable);
   buffer.writeBoolean(temporary);
   buffer.writeInt(consumerCount);
   buffer.writeLong(messageCount);
   buffer.writeNullableSimpleString(filterString);
   buffer.writeNullableSimpleString(address);
   buffer.writeNullableSimpleString(name);
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:12,代码来源:SessionQueueQueryResponseMessage.java

示例7: encodeRest

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void encodeRest(final ActiveMQBuffer buffer) {
   buffer.writeByte(journalID);
   buffer.writeBoolean(operation.toBoolean());
   buffer.writeLong(txId);
   buffer.writeLong(id);
   buffer.writeByte(recordType);
   buffer.writeInt(persister.getEncodeSize(encodingData));
   persister.encode(buffer, encodingData);
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:11,代码来源:ReplicationAddTXMessage.java

示例8: encodeRest

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

   buffer.writeLong(messageID);

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

示例9: encodeRest

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void encodeRest(final ActiveMQBuffer buffer) {
   super.encodeRest(buffer);
   buffer.writeBoolean(autoCreated);
   buffer.writeBoolean(purgeOnNoConsumers);
   buffer.writeByte(routingType.getType());
   buffer.writeInt(maxConsumers);
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:9,代码来源:SessionQueueQueryResponseMessage_V3.java

示例10: encodeRest

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void encodeRest(final ActiveMQBuffer buffer) {
   buffer.writeSimpleString(address);
   buffer.writeSimpleString(queueName);
   buffer.writeNullableSimpleString(filterString);
   buffer.writeBoolean(durable);
   buffer.writeByte(routingType.getType());
   buffer.writeBoolean(requiresResponse);
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:10,代码来源:CreateSharedQueueMessage_V2.java

示例11: encodeRest

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

示例12: encodeRest

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void encodeRest(final ActiveMQBuffer buffer) {
   buffer.writeInt(lastConfirmedCommandID);
   buffer.writeBoolean(reattached);
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:6,代码来源:ReattachSessionResponseMessage.java

示例13: encodeRest

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void encodeRest(final ActiveMQBuffer buffer) {
   super.encodeRest(buffer);
   buffer.writeBoolean(defaultPurgeOnNoConsumers);
   buffer.writeInt(defaultMaxConsumers);
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:7,代码来源:SessionBindingQueryResponseMessage_V4.java

示例14: encodeRest

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void encodeRest(final ActiveMQBuffer buffer) {
   buffer.writeByte(journalID);
   buffer.writeBoolean(rollback);
   buffer.writeLong(txId);
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:7,代码来源:ReplicationCommitMessage.java

示例15: encodeRest

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


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