Package com.yahoo.vespa.http.client
Class SessionFactory
- java.lang.Object
-
- com.yahoo.vespa.http.client.SessionFactory
-
@Deprecated public final class SessionFactory extends Object
Deprecated.Vespa-http-client will be removed in Vespa 8. It's replaced by vespa-feed-clientFactory for creatingSession
instances.- Author:
- Einar M R Rosenvinge
-
-
Constructor Summary
Constructors Constructor Description SessionFactory()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Session
create(Endpoint endpoint)
Deprecated.static Session
create(SessionParams params)
Deprecated.Creates aSession
with the given parameters.
-
-
-
Method Detail
-
create
public static Session create(SessionParams params)
Deprecated.Creates aSession
with the given parameters.- Parameters:
params
- the parameters to use when creating the Session.- Returns:
- a new Session instance
-
create
public static Session create(Endpoint endpoint)
Deprecated.Creates aSession
to a singleEndpoint
, with default values for everything. For full control of all parameters, or to feed to more than one Endpoint or more than oneCluster
, seecreate(com.yahoo.vespa.http.client.config.SessionParams)
.- Parameters:
endpoint
- the Endpoint to feed to.- Returns:
- a new Session instance
- See Also:
create(com.yahoo.vespa.http.client.config.SessionParams)
-
-