org.apache.qpid.proton.amqp.messaging.Header Maven / Gradle / Ivy
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.qpid.proton.amqp.messaging;
import org.apache.qpid.proton.amqp.UnsignedByte;
import org.apache.qpid.proton.amqp.UnsignedInteger;
public final class Header
implements Section
{
private Boolean _durable;
private UnsignedByte _priority;
private UnsignedInteger _ttl;
private Boolean _firstAcquirer;
private UnsignedInteger _deliveryCount;
public Header()
{
}
public Header(Header other)
{
this._durable = other._durable;
this._priority = other._priority;
this._ttl = other._ttl;
this._firstAcquirer = other._firstAcquirer;
this._deliveryCount = other._deliveryCount;
}
public Boolean getDurable()
{
return _durable;
}
public void setDurable(Boolean durable)
{
_durable = durable;
}
public UnsignedByte getPriority()
{
return _priority;
}
public void setPriority(UnsignedByte priority)
{
_priority = priority;
}
public UnsignedInteger getTtl()
{
return _ttl;
}
public void setTtl(UnsignedInteger ttl)
{
_ttl = ttl;
}
public Boolean getFirstAcquirer()
{
return _firstAcquirer;
}
public void setFirstAcquirer(Boolean firstAcquirer)
{
_firstAcquirer = firstAcquirer;
}
public UnsignedInteger getDeliveryCount()
{
return _deliveryCount;
}
public void setDeliveryCount(UnsignedInteger deliveryCount)
{
_deliveryCount = deliveryCount;
}
@Override
public String toString()
{
return "Header{" +
"durable=" + _durable +
", priority=" + _priority +
", ttl=" + _ttl +
", firstAcquirer=" + _firstAcquirer +
", deliveryCount=" + _deliveryCount +
'}';
}
}