kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 64e48e4f1b055b916f674ff3e5fb9cce5fee9cba885c9a3d32511962aafac894 |
|---|---|
| Author | Alexandre Dutra <alexandre.dutra@datastax.com> · 2015-12-23 18:31 +01:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2016-01-06 10:37 +01:00 |
| Parents | 1eddbb93fc67 |
1 file changed
modified driver-core/src/main/java/com/datastax/driver/core/Statement.java +18 −1
| @@ -492,7 +492,24 @@ | ||
| 492 | 492 | return queryOptions.getDefaultIdempotence(); |
| 493 | 493 | } |
| 494 | 494 | |
| 495 | - Map<String, ByteBuffer> getOutgoingPayload() { | |
| 495 | + /** | |
| 496 | + * Returns this statement's outgoing payload. | |
| 497 | + * Each time this statement is executed, this payload will be included in the query request. | |
| 498 | + * <p/> | |
| 499 | + * This method returns {@code null} if no payload has been set, otherwise | |
| 500 | + * it always returns immutable maps. | |
| 501 | + * <p/> | |
| 502 | + * This feature is only available with {@link ProtocolVersion#V4} or above. | |
| 503 | + * Trying to include custom payloads in requests sent by the driver | |
| 504 | + * under lower protocol versions will result in an | |
| 505 | + * {@link com.datastax.driver.core.exceptions.UnsupportedFeatureException} | |
| 506 | + * (wrapped in a {@link com.datastax.driver.core.exceptions.NoHostAvailableException}). | |
| 507 | + * | |
| 508 | + * @return the outgoing payload to include with this statement, | |
| 509 | + * or {@code null} if no payload has been set. | |
| 510 | + * @since 2.2 | |
| 511 | + */ | |
| 512 | + public Map<String, ByteBuffer> getOutgoingPayload() { | |
| 496 | 513 | return outgoingPayload; |
| 497 | 514 | } |
| 498 | 515 |