diff options
author | Robert Godfrey <rgodfrey@apache.org> | 2014-10-03 17:40:59 +0000 |
---|---|---|
committer | Robert Godfrey <rgodfrey@apache.org> | 2014-10-03 17:40:59 +0000 |
commit | 146fcaecb92b7579fa6927dceecfe32ab92378c4 (patch) | |
tree | 71d5b853a009f3462667049af5b0742b696cad9d /java/common/src/main/java/org/apache/qpid/framing/BasicRecoverBody.java | |
parent | 49947bf1e2369fc1a989139f30885599c348466a (diff) | |
download | qpid-python-146fcaecb92b7579fa6927dceecfe32ab92378c4.tar.gz |
More refactoring
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/QPID-6125-ProtocolRefactoring@1629270 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/common/src/main/java/org/apache/qpid/framing/BasicRecoverBody.java')
-rw-r--r-- | java/common/src/main/java/org/apache/qpid/framing/BasicRecoverBody.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/java/common/src/main/java/org/apache/qpid/framing/BasicRecoverBody.java b/java/common/src/main/java/org/apache/qpid/framing/BasicRecoverBody.java index fdda88534c..739470c658 100644 --- a/java/common/src/main/java/org/apache/qpid/framing/BasicRecoverBody.java +++ b/java/common/src/main/java/org/apache/qpid/framing/BasicRecoverBody.java @@ -45,7 +45,7 @@ public class BasicRecoverBody extends AMQMethodBodyImpl implements EncodableAMQD // Constructor public BasicRecoverBody(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException { - _bitfield0 = readBitfield( buffer ); + _bitfield0 = buffer.readByte(); } public BasicRecoverBody( @@ -100,4 +100,14 @@ public class BasicRecoverBody extends AMQMethodBodyImpl implements EncodableAMQD return buf.toString(); } + public static <T> T process(final int channelId, + final MarkableDataInput in, + final ProtocolVersion protocolVersion, + final MethodProcessor<T> dispatcher) throws IOException + { + boolean requeue = (in.readByte() & 0x01) == 0x01; + boolean sync = (ProtocolVersion.v8_0.equals(protocolVersion)); + + return dispatcher.basicRecover(channelId, requeue, sync); + } } |