Getting Document by with ID and Revision

we have a requirement that we need to fetch details of document based on revision also.
For example,
if the Document Contains ;
data in the 1st Revision.

  data in the 2nd Revision.

is it possible to get the document by revision-based query through Java SDK?
I can see the revision id in the metadata section, but while fetching the record I am not able to get the revision id.

it will be helpful if anyone provides how to get revision id along with the document and fetch document with id and revision id.