本文整理汇总了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);
}
}
示例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);
}
}
示例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());
}
}
}
}
示例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());
}
}
示例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());
}
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例11: encodeRest
import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void encodeRest(final ActiveMQBuffer buffer) {
buffer.writeBoolean(clusterConnection);
}
示例12: encodeRest
import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void encodeRest(final ActiveMQBuffer buffer) {
buffer.writeInt(lastConfirmedCommandID);
buffer.writeBoolean(reattached);
}
示例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);
}
示例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);
}
示例15: encodeRest
import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void encodeRest(final ActiveMQBuffer buffer) {
buffer.writeBoolean(ok);
}