diff options
author | Haakon Dybdahl <dybdahl@yahoo-inc.com> | 2016-12-12 09:08:37 +0100 |
---|---|---|
committer | Haakon Dybdahl <dybdahl@yahoo-inc.com> | 2016-12-12 09:08:37 +0100 |
commit | 1d5347ebb802618f6972ee168c213d2827c4ca07 (patch) | |
tree | 4c17eea4c23b1ba77a8906e997f22a75739ac1ac /vespa-http-client | |
parent | 980d6da5a076c2d2a46d9bfbda2730309bc6c252 (diff) |
Make endpoint serizable.
Diffstat (limited to 'vespa-http-client')
-rw-r--r-- | vespa-http-client/src/main/java/com/yahoo/vespa/http/client/config/Endpoint.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/config/Endpoint.java b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/config/Endpoint.java index 6c2e162f15b..ca9dae4f7fe 100644 --- a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/config/Endpoint.java +++ b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/config/Endpoint.java @@ -3,6 +3,8 @@ package com.yahoo.vespa.http.client.config; import net.jcip.annotations.Immutable; +import java.io.Serializable; + /** * Represents an endpoint, in most cases a JDisc container * in a Vespa cluster configured with <code>document-api</code>. @@ -11,7 +13,7 @@ import net.jcip.annotations.Immutable; * @since 5.1.20 */ @Immutable -public final class Endpoint { +public final class Endpoint implements Serializable { /** * Creates an Endpoint with the default port and without using SSL. @@ -36,6 +38,7 @@ public final class Endpoint { return new Endpoint(hostname, port, useSsl); } + private static final long serialVersionUID = 4545345L; private final String hostname; private final int port; private final boolean useSsl; |