public static AMQFrame createAMQFrame(int channelId, BasicContentHeaderProperties properties, long bodySize) { return new AMQFrame(channelId, new ContentHeaderBody(properties, bodySize)); }
@Override public boolean isPersistent() { return _contentHeaderBody.getProperties().getDeliveryMode() == BasicContentHeaderProperties.PERSISTENT; }
@Override public void writeMethodPayload(QpidByteBuffer buffer) { writeUnsignedShort( buffer, _ticket ); writeAMQShortString( buffer, _exchange ); writeAMQShortString( buffer, _routingKey ); writeBitfield( buffer, _bitfield0 ); }
@Override public void writeMethodPayload(QpidByteBuffer buffer) { writeUnsignedInteger( buffer, _prefetchSize ); writeUnsignedShort( buffer, _prefetchCount ); writeBitfield( buffer, _bitfield0 ); }
@Override public long getSize() { return 1 + 2 + 4 + _bodyFrame.getSize() + 1; }
public synchronized void setDeliveryMode(byte deliveryMode) { _propertyFlags |= DELIVERY_MODE_MASK; _deliveryMode = deliveryMode; nullEncodedForm(); }
@Override public boolean execute(MethodDispatcher dispatcher, int channelId) throws QpidException { return dispatcher.dispatchBasicPublish(this, channelId); }
@Override protected int getBodySize() { int size = 1; size += getSizeOf( _realm ); return size; }
@Override public boolean execute(MethodDispatcher dispatcher, int channelId) throws QpidException { return dispatcher.dispatchBasicNack(this, channelId); }
@Override public boolean execute(MethodDispatcher dispatcher, int channelId) throws QpidException { return dispatcher.dispatchBasicReturn(this, channelId); }
@Override public boolean execute(MethodDispatcher dispatcher, int channelId) throws QpidException { return dispatcher.dispatchBasicRecoverSyncOk(this, channelId); }
@Override protected int getBodySize() { int size = 0; size += getSizeOf( _consumerTag ); return size; }
@Override public boolean execute(MethodDispatcher dispatcher, int channelId) throws QpidException { return dispatcher.dispatchBasicReject(this, channelId); }
@Override public boolean execute(MethodDispatcher dispatcher, int channelId) throws QpidException { return dispatcher.dispatchBasicAck(this, channelId); }
@Override public void writeMethodPayload(QpidByteBuffer buffer) { writeAMQShortString( buffer, _clusterId ); }
@Override public boolean execute(MethodDispatcher dispatcher, int channelId) throws QpidException { return dispatcher.dispatchBasicGetEmpty(this, channelId); }
public synchronized void setTimestamp(long timestamp) { _propertyFlags |= TIMESTAMP_MASK; _timestamp = timestamp; nullEncodedForm(); }