Java Code Examples for com.sleepycat.bind.tuple.TupleOutput#writeBoolean()

The following examples show how to use com.sleepycat.bind.tuple.TupleOutput#writeBoolean() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LinkKeyEntryBinding.java    From qpid-broker-j with Apache License 2.0 5 votes vote down vote up
@Override
public void objectToEntry(final LinkKey linkKey, final TupleOutput output)
{
    output.writeString(linkKey.getRemoteContainerId());
    output.writeString(linkKey.getLinkName());
    output.writeBoolean(linkKey.getRole().getValue());
}
 
Example 2
Source File: UpgradeFrom5To6.java    From qpid-broker-j with Apache License 2.0 5 votes vote down vote up
@Override
public void objectToEntry(OldQueueRecord queue, TupleOutput tupleOutput)
{
    AMQShortStringEncoding.writeShortString(queue.getNameShortString(), tupleOutput);
    AMQShortStringEncoding.writeShortString(queue.getOwner(), tupleOutput);
    FieldTableEncoding.writeFieldTable(queue.getArguments(), tupleOutput);
    tupleOutput.writeBoolean(queue.isExclusive());
}
 
Example 3
Source File: UpgradeFrom5To6.java    From qpid-broker-j with Apache License 2.0 5 votes vote down vote up
@Override
public void objectToEntry(ExchangeRecord exchange, TupleOutput tupleOutput)
{
    AMQShortStringEncoding.writeShortString(exchange.getNameShortString(), tupleOutput);
    AMQShortStringEncoding.writeShortString(exchange.getType(), tupleOutput);

    tupleOutput.writeBoolean(exchange.isAutoDelete());
}
 
Example 4
Source File: UpgradeFrom4To5.java    From qpid-broker-j with Apache License 2.0 5 votes vote down vote up
@Override
public void objectToEntry(final ExchangeRecord object, final TupleOutput output)
{
    AMQShortStringEncoding.writeShortString(object.getName(), output);
    AMQShortStringEncoding.writeShortString(object.getType(), output);
    output.writeBoolean(false);
}
 
Example 5
Source File: UpgradeFrom4To5.java    From qpid-broker-j with Apache License 2.0 5 votes vote down vote up
@Override
public void objectToEntry(final QueueRecord record, final TupleOutput output)
{
    AMQShortStringEncoding.writeShortString(record.getNameShortString(), output);
    AMQShortStringEncoding.writeShortString(record.getOwner(), output);
    FieldTableEncoding.writeFieldTable(record.getArguments(), output);
    output.writeBoolean(record.isExclusive());

}