kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 2066f6f7195263f96ad0e1a19da4fbb4152137e0a3c32dd6071d8c9f6afb2d55 |
|---|---|
| Author | Sam Tunnicliffe <sam@beobal.com> · 2015-03-25 11:51 UTC |
| Committer | Sam Tunnicliffe <sam@beobal.com> · 2015-03-25 14:19 UTC |
| Parents | 2358e77d8126 |
1 file changed
modified driver-core/src/main/java/com/datastax/driver/core/ProtocolVersion.java +8 −1
| @@ -62,7 +62,14 @@ | ||
| 62 | 62 | return new DriverInternalError("Unsupported protocol version " + this); |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - int toInt() { | |
| 65 | + /** | |
| 66 | + * Get the int representation of a protocol version. | |
| 67 | + * This is for use internally by Cassandra to ensure that the | |
| 68 | + * correct version is specified when serializing and deserializing | |
| 69 | + * using classes from the imported driver library. | |
| 70 | + * @return the protocol version as an int | |
| 71 | + */ | |
| 72 | + public int toInt() { | |
| 66 | 73 | return asInt; |
| 67 | 74 | } |
| 68 | 75 |