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


Java ActiveMQBuffer.writeSimpleString方法代码示例

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


在下文中一共展示了ActiveMQBuffer.writeSimpleString方法的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包/类
@Override
public void encode(final ActiveMQBuffer buffer) {
   buffer.writeSimpleString(name);
   buffer.writeInt(routingTypes.size());
   for (RoutingType d : routingTypes) {
      buffer.writeByte(d.getType());
   }
   buffer.writeBoolean(autoCreated);
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:10,代码来源:PersistentAddressBindingEncoding.java

示例3: encodeRest

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void encodeRest(final ActiveMQBuffer buffer) {
   buffer.writeBoolean(exists);
   buffer.writeInt(queueNames.size());
   for (SimpleString queueName : queueNames) {
      buffer.writeSimpleString(queueName);
   }
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:9,代码来源:SessionBindingQueryResponseMessage.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: newFileFactory

import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
private synchronized SequentialFileFactory newFileFactory(final String directoryName, boolean writeToDirectory) throws Exception {
   JDBCSequentialFile directoryList = (JDBCSequentialFile) pagingFactoryFileFactory.createSequentialFile(DIRECTORY_NAME);
   directoryList.open();
   SimpleString simpleString = SimpleString.toSimpleString(directoryName);
   ActiveMQBuffer buffer = ActiveMQBuffers.fixedBuffer(simpleString.sizeof());
   buffer.writeSimpleString(simpleString);
   if (writeToDirectory) directoryList.write(buffer, true);
   directoryList.close();

   final SQLProvider sqlProvider;
   if (dbConf.getDataSource() != null) {
      final SQLProvider.Factory sqlProviderFactory;
      if (dbConf.getSqlProviderFactory() != null) {
         sqlProviderFactory = dbConf.getSqlProviderFactory();
      } else {
         sqlProviderFactory = new PropertySQLProvider.Factory(dbConf.getDataSource());
      }
      sqlProvider = sqlProviderFactory.create(getTableNameForGUID(directoryName), SQLProvider.DatabaseStoreType.PAGE);
   } else {
      sqlProvider = JDBCUtils.getSQLProvider(dbConf.getJdbcDriverClassName(), getTableNameForGUID(directoryName), SQLProvider.DatabaseStoreType.PAGE);
   }
   final JDBCSequentialFileFactory fileFactory = new JDBCSequentialFileFactory(pagingFactoryFileFactory.getDbDriver().getConnection(), sqlProvider, executorFactory.getExecutor(), criticalErrorListener);
   final int jdbcNetworkTimeout = dbConf.getJdbcNetworkTimeout();
   if (jdbcNetworkTimeout >= 0) {
      fileFactory.setNetworkTimeout(this.executorFactory.getExecutor(), jdbcNetworkTimeout);
   }
   return fileFactory;
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:29,代码来源:PagingStoreFactoryDatabase.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: 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

示例8: encodeRest

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

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

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

示例11: encode

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

   buffer.writeInt(duplID.length);

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

示例12: encodeRest

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

示例13: encodeRest

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

示例14: encodeRest

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

示例15: encodeRest

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


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