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


Java ActiveMQBuffer.writeNullableString方法代码示例

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


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

示例1: encodeRest

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void encodeRest(final ActiveMQBuffer buffer) {
   buffer.writeBoolean(exit);
   buffer.writeString(nodeID);
   buffer.writeLong(uniqueEventID);
   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);
   }
   buffer.writeNullableString(backupGroupName);
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:23,代码来源:ClusterTopologyChangeMessage_V2.java

示例2: encodeRest

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

示例3: encodeRest

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

示例4: encodeRest

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void encodeRest(ActiveMQBuffer buffer) {
   super.encodeRest(buffer);
   buffer.writeInt(backupSize);
   buffer.writeNullableString(journalDirectory);
   buffer.writeNullableString(bindingsDirectory);
   buffer.writeNullableString(largeMessagesDirectory);
   buffer.writeNullableString(pagingDirectory);
   buffer.writeNullableSimpleString(nodeID);
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:11,代码来源:BackupRequestMessage.java

示例5: encodeRest

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

示例6: encodeRest

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

示例7: encodeRest

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

示例8: encodeRest

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

示例9: encode

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void encode(ActiveMQBuffer buff) {
   buff.writeInt(backupsSize);
   buff.writeNullableString(nodeID);
   buff.writeBoolean(backupAvailable);
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:7,代码来源:ColocatedActivation.java


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