APISonar


com.tinkerpop.gremlin.driver.ser.Serializers.JSON

> com > tinkerpop > gremlin > driver > ser > Serializers > JSON
com APIs tinkerpop APIs gremlin APIs driver APIs ser APIs Serializers APIs JSON APIs

Example 1
public void webSocketsGremlinConcurrentAlternateSerialization() throws Exception {
        final Serializers[] mimes = new Serializers[] {Serializers.JSON, Serializers.JSON_V1D0, Serializers.KRYO_V1D0};
        final Serializers mimeType = mimes[rand.nextInt(3)];
        System.out.println(mimeType);
        final Cluster cluster = Cluster.create("localhost")
                .serializer(mimeType)
                .build();
        final Client client = cluster.connect();
        assertEquals("2", client.submit("1+1").stream().map(Item::getString).findFirst().orElse("invalid"));
    }