You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2015/05/18 20:03:22 UTC

[2/3] incubator-tinkerpop git commit: Updates to javadocs.

Updates to javadocs.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/346187cd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/346187cd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/346187cd

Branch: refs/heads/master
Commit: 346187cd474031e1662e960fe4df0bdfdd4309ad
Parents: b6b4a93
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Mon May 18 14:02:55 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Mon May 18 14:02:55 2015 -0400

----------------------------------------------------------------------
 .../apache/tinkerpop/gremlin/driver/Cluster.java    | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/346187cd/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/Cluster.java
----------------------------------------------------------------------
diff --git a/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/Cluster.java b/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/Cluster.java
index 0820110..af6c850 100644
--- a/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/Cluster.java
+++ b/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/Cluster.java
@@ -234,21 +234,37 @@ public class Cluster {
             return this;
         }
 
+        /**
+         * Set the {@link MessageSerializer} to use given its MIME type.  Note that setting this value this way
+         * will not allow specific configuration of the serializer itself.  If specific configuration is required
+         * please use {@link #serializer(MessageSerializer)}.
+         */
         public Builder serializer(final String mimeType) {
             serializer = Serializers.valueOf(mimeType).simpleInstance();
             return this;
         }
 
+        /**
+         * Set the {@link MessageSerializer} to use via the {@link Serializers} enum. If specific configuration is
+         * required please use {@link #serializer(MessageSerializer)}.
+         */
         public Builder serializer(final Serializers mimeType) {
             serializer = mimeType.simpleInstance();
             return this;
         }
 
+        /**
+         * Sets the {@link MessageSerializer} to use.
+         */
         public Builder serializer(final MessageSerializer serializer) {
             this.serializer = serializer;
             return this;
         }
 
+        /**
+         * Enables connectivity over SSL - note that the server should be configured with SSL turned on for this
+         * setting to work properly.
+         */
         public Builder enableSsl(final boolean enable) {
             this.enableSsl = enable;
             return this;