本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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());
}
示例7: encodeRest
import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void encodeRest(ActiveMQBuffer buffer) {
buffer.writeNullableString(nodeID);
}
示例8: encodeRest
import org.apache.activemq.artemis.api.core.ActiveMQBuffer; //导入方法依赖的package包/类
@Override
public void encodeRest(final ActiveMQBuffer buffer) {
super.encodeRest(buffer);
buffer.writeNullableString(scaleDownGroupName);
}
示例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);
}