Java Code Examples for com.sleepycat.bind.tuple.TupleInput#readBoolean()

The following examples show how to use com.sleepycat.bind.tuple.TupleInput#readBoolean() . 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: UpgradeFrom5To6.java    From qpid-broker-j with Apache License 2.0 5 votes vote down vote up
@Override
public OldQueueRecord entryToObject(TupleInput tupleInput)
{
    AMQShortString name = AMQShortStringEncoding.readShortString(tupleInput);
    AMQShortString owner = AMQShortStringEncoding.readShortString(tupleInput);
    FieldTable arguments = FieldTableEncoding.readFieldTable(tupleInput);
    boolean exclusive = tupleInput.readBoolean();
    return new OldQueueRecord(name, owner, exclusive, arguments);
}
 
Example 2
Source File: UpgradeFrom5To6.java    From qpid-broker-j with Apache License 2.0 5 votes vote down vote up
@Override
public ExchangeRecord entryToObject(TupleInput tupleInput)
{
    AMQShortString name = AMQShortStringEncoding.readShortString(tupleInput);
    AMQShortString typeName = AMQShortStringEncoding.readShortString(tupleInput);

    boolean autoDelete = tupleInput.readBoolean();

    return new ExchangeRecord(name, typeName, autoDelete);
}
 
Example 3
Source File: UpgradeFrom4To5.java    From qpid-broker-j with Apache License 2.0 5 votes vote down vote up
@Override
public QueueRecord entryToObject(final TupleInput input)
{
    AMQShortString name = AMQShortStringEncoding.readShortString(input);
    AMQShortString owner = AMQShortStringEncoding.readShortString(input);
    FieldTable arguments = FieldTableEncoding.readFieldTable(input);
    boolean exclusive = input.available() > 0 && input.readBoolean();
    exclusive = exclusive || _durableSubNames.contains(name);

    return new QueueRecord(name, owner, exclusive, arguments);

}
 
Example 4
Source File: UpgradeFrom4To5.java    From qpid-broker-j with Apache License 2.0 5 votes vote down vote up
private MessagePublishInfo readMessagePublishInfo(TupleInput tupleInput)
{

    final AMQShortString exchange = AMQShortStringEncoding.readShortString(tupleInput);
    final AMQShortString routingKey = AMQShortStringEncoding.readShortString(tupleInput);
    final boolean mandatory = tupleInput.readBoolean();
    final boolean immediate = tupleInput.readBoolean();

    return new MessagePublishInfo(exchange, immediate, mandatory, routingKey);

}