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


Java ActiveMQBuffer.writeNullableSimpleString方法代码示例

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


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

示例1: encode

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void encode(final ActiveMQBuffer buffer) {
   buffer.writeByte(type.getType());
   buffer.writeSimpleString(SimpleString.toSimpleString(name));
   buffer.writeNullableSimpleString(SimpleString.toSimpleString(selector));
   buffer.writeBoolean(durable);
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:8,代码来源:PersistedDestination.java

示例2: encode

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
/** Sub classes must add the first short as the protocol-id */
@Override
public void encode(ActiveMQBuffer buffer, Message record) {
   buffer.writeByte((byte)1);
   buffer.writeLong(record.getMessageID());
   buffer.writeNullableSimpleString(record.getAddressSimpleString());
   record.persist(buffer);
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:9,代码来源:CoreMessagePersister.java

示例3: 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

示例4: 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

示例5: 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.writeBoolean(temporary);
   buffer.writeBoolean(requiresResponse);
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:10,代码来源:CreateQueueMessage.java

示例6: 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.writeBoolean(requiresResponse);
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:9,代码来源:CreateSharedQueueMessage.java

示例7: encodeRest

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

示例8: encode

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
/** Sub classes must add the first short as the protocol-id */
@Override
public void encode(ActiveMQBuffer buffer, Message record) {
   super.encode(buffer, record);
   AMQPMessage msgEncode = (AMQPMessage)record;
   buffer.writeLong(record.getMessageID());
   buffer.writeLong(msgEncode.getMessageFormat());
   buffer.writeNullableSimpleString(record.getAddressSimpleString());
   record.persist(buffer);
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:11,代码来源:AMQPMessagePersister.java

示例9: 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

示例10: encode

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void encode(final ActiveMQBuffer buffer) {
   buffer.writeSimpleString(addressMatch);
   buffer.writeNullableSimpleString(sendRoles);
   buffer.writeNullableSimpleString(consumeRoles);
   buffer.writeNullableSimpleString(createDurableQueueRoles);
   buffer.writeNullableSimpleString(deleteDurableQueueRoles);
   buffer.writeNullableSimpleString(createNonDurableQueueRoles);
   buffer.writeNullableSimpleString(deleteNonDurableQueueRoles);
   buffer.writeNullableSimpleString(manageRoles);
   buffer.writeNullableSimpleString(browseRoles);
   buffer.writeNullableSimpleString(createAddressRoles);
   buffer.writeNullableSimpleString(deleteAddressRoles);
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:15,代码来源:PersistedRoles.java

示例11: encode

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

示例12: writeAsNullableSimpleString

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
public static void writeAsNullableSimpleString(ActiveMQBuffer buffer, String str) {
   buffer.writeNullableSimpleString(SimpleString.toSimpleString(str));
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:4,代码来源:BufferHelper.java

示例13: writeBodyText

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
/**
 * Utility method to set the Text message on a message body
 */
public static void writeBodyText(ActiveMQBuffer buff, SimpleString text) {
   buff.clear();
   buff.writeNullableSimpleString(text);
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:8,代码来源:TextMessageUtil.java

示例14: encodeRest

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

示例15: encodeRest

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


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