public class MarketplaceWebServiceConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MarketplaceWebServiceConfig.ProxyProtocol |
| Constructor and Description |
|---|
MarketplaceWebServiceConfig() |
| Modifier and Type | Method and Description |
|---|---|
int |
getConnectionTimeout()
Gets ConnectionTimeout property
|
int |
getMaxAsyncQueueSize()
Gets MaxAsyncQueueSize property
|
int |
getMaxAsyncThreads()
Gets MaxAsyncThreads property
|
int |
getMaxErrorRetry()
Gets MaxErrorRetry property
|
String |
getProxyHost()
Gets ProxyHost property
|
String |
getProxyPassword()
Gets ProxyPassword property
|
int |
getProxyPort()
Gets ProxyPort property
|
MarketplaceWebServiceConfig.ProxyProtocol |
getProxyProtocol()
Gets ProxyProtocol property
|
String |
getProxyUsername()
Gets ProxyUsername property
|
String |
getServiceURL()
Gets ServiceURL property
|
String |
getServiceVersion()
Gets Version of the API
|
String |
getSignatureMethod()
Gets SignatureMethod property
|
int |
getSoTimeout()
Gets SocketTimeout property
|
String |
getUserAgent()
Gets UserAgent property
|
boolean |
isSetConnectionTimeout()
Checks if ConnectionTimeout property is set
|
boolean |
isSetMaxAsyncQueueSize()
Checks if MaxAsyncQueueSize property is set
|
boolean |
isSetMaxAsyncThreads()
Checks if MaxAsyncThreads property is set
|
boolean |
isSetMaxErrorRetry()
Checks if MaxErrorRetry property is set
|
boolean |
isSetProxyHost()
Checks if ProxyHost property is set
|
boolean |
isSetProxyPassword()
Checks if ProxyPassword property is set
|
boolean |
isSetProxyPort()
Checks if ProxyPort property is set
|
boolean |
isSetProxyProtocol()
Checks if ProxyProtocol property is set
|
boolean |
isSetProxyUsername()
Checks if ProxyUsername property is set
|
boolean |
isSetServiceURL()
Checks if ServiceURL property is set
|
boolean |
isSetSignatureMethod()
Checks if SignatureMethod property is set
|
boolean |
isSetSoTimeout()
Checks if SocketTimeout property is set
|
boolean |
isSetUserAgent()
Checks if UserAgent property is set
|
void |
setConnectionTimeout(int connectionTimeout)
Sets ConnectionTimeout property
|
void |
setMaxAsyncQueueSize(int maxAsyncQueueSize)
Sets MaxAsyncQueueSize property
|
void |
setMaxAsyncThreads(int maxAsyncThreads)
Sets MaxAsyncThreads property
|
void |
setMaxErrorRetry(int maxErrorRetry)
Sets MaxErrorRetry property
|
void |
setProxyHost(String proxyHost)
Sets ProxyHost property
|
void |
setProxyPassword(String proxyPassword)
Sets ProxyPassword property
|
void |
setProxyPort(int proxyPort)
Sets ProxyPort property
|
void |
setProxyProtocol(MarketplaceWebServiceConfig.ProxyProtocol proxyProtocol)
Sets ProxyProtocol property
|
void |
setProxyUsername(String proxyUsername)
Sets ProxyUsername property
|
void |
setServiceURL(String serviceURL)
Sets ServiceURL property
|
void |
setSignatureMethod(String signatureMethod)
Sets SignatureMethod property
|
void |
setSoTimeout(int socketTimeout)
Sets SocketTimeout property
|
void |
setUserAgent(String applicationName,
String applicationVersion,
String programmingLanguage,
String... additionalNameValuePairs)
Sets UserAgent property
|
MarketplaceWebServiceConfig |
withConnectionTimeout(int connectionTimeout)
Sets ConnectionTimeout property and returns current MarketplaceWebServiceConfig
|
MarketplaceWebServiceConfig |
withMaxAsyncQueueSize(int maxAsyncQueueSize)
Sets MaxAsyncQueueSize property and returns current MarketplaceWebServiceConfig
|
MarketplaceWebServiceConfig |
withMaxAsyncThreads(int maxAsyncThreads)
Sets MaxAsyncThreads property and returns current MarketplaceWebServiceConfig
|
MarketplaceWebServiceConfig |
withMaxErrorRetry(int maxErrorRetry)
Sets MaxErrorRetry property and returns current MarketplaceWebServiceConfig
|
MarketplaceWebServiceConfig |
withProxyHost(String proxyHost)
Sets ProxyHost property and returns current MarketplaceWebServiceConfig
|
MarketplaceWebServiceConfig |
withProxyPassword(String proxyPassword)
Sets ProxyPassword property and returns current MarketplaceWebServiceConfig
|
MarketplaceWebServiceConfig |
withProxyPort(int proxyPort)
Sets ProxyPort property and returns current MarketplaceWebServiceConfig
|
MarketplaceWebServiceConfig |
withProxyProtocol(MarketplaceWebServiceConfig.ProxyProtocol proxyProtocol)
Sets ProxyProtocol property and returns current MarketplaceWebServiceConfig
|
MarketplaceWebServiceConfig |
withProxyUsername(String proxyUsername)
Sets ProxyUsername property and returns current MarketplaceWebServiceConfig
|
MarketplaceWebServiceConfig |
withServiceURL(String serviceURL)
Sets ServiceURL property and returns current MarketplaceWebServiceConfig
|
MarketplaceWebServiceConfig |
withSignatureMethod(String signatureMethod)
Sets SignatureMethod property and returns current MarketplaceWebServiceConfig
|
MarketplaceWebServiceConfig |
withSoTimeout(int socketTimeout)
Sets SocketTimeout property and returns current MarketplaceWebServiceConfig
|
MarketplaceWebServiceConfig |
withUserAgent(String applicationName,
String applicationVersion,
String programmingLanguage,
String... additionalNameValuePairs)
Sets UserAgent property and returns current MarketplaceWebServiceConfig
|
public String getServiceVersion()
public int getConnectionTimeout()
public void setConnectionTimeout(int connectionTimeout)
connectionTimeout - Timeout until connection is establishedpublic MarketplaceWebServiceConfig withConnectionTimeout(int connectionTimeout)
connectionTimeout - until connection is establishedpublic boolean isSetConnectionTimeout()
public int getSoTimeout()
public void setSoTimeout(int socketTimeout)
socketTimeout - Timeout for waiting for datapublic MarketplaceWebServiceConfig withSoTimeout(int socketTimeout)
socketTimeout - for waiting for datapublic boolean isSetSoTimeout()
public String getSignatureMethod()
public void setSignatureMethod(String signatureMethod)
signatureMethod - Signature Method for signing requestspublic MarketplaceWebServiceConfig withSignatureMethod(String signatureMethod)
signatureMethod - Signature Method for signing requestspublic boolean isSetSignatureMethod()
public String getUserAgent()
public void setUserAgent(String applicationName, String applicationVersion, String programmingLanguage, String... additionalNameValuePairs)
userAgent - User Agent String to use when sending requestpublic MarketplaceWebServiceConfig withUserAgent(String applicationName, String applicationVersion, String programmingLanguage, String... additionalNameValuePairs)
userAgent - User Agent String to use when sending requestpublic boolean isSetUserAgent()
public String getServiceURL()
public void setServiceURL(String serviceURL)
serviceURL - Service Endpoint URLpublic MarketplaceWebServiceConfig withServiceURL(String serviceURL)
serviceURL - Service Endpoint URLpublic boolean isSetServiceURL()
public String getProxyHost()
public void setProxyHost(String proxyHost)
proxyHost - Proxy Host for connectionpublic MarketplaceWebServiceConfig withProxyHost(String proxyHost)
proxyHost - Proxy Host for connectionpublic boolean isSetProxyHost()
public MarketplaceWebServiceConfig.ProxyProtocol getProxyProtocol()
public void setProxyProtocol(MarketplaceWebServiceConfig.ProxyProtocol proxyProtocol)
proxyProtocol - Proxy Protocol for connectionpublic MarketplaceWebServiceConfig withProxyProtocol(MarketplaceWebServiceConfig.ProxyProtocol proxyProtocol)
proxyProtocol - Proxy Protocol for connectionpublic boolean isSetProxyProtocol()
public int getProxyPort()
public void setProxyPort(int proxyPort)
proxyPort - Proxy Port for connectionpublic MarketplaceWebServiceConfig withProxyPort(int proxyPort)
proxyPort - Proxy Port for connectionpublic boolean isSetProxyPort()
public String getProxyUsername()
public void setProxyUsername(String proxyUsername)
proxyUsername - Proxy Username for connectionpublic MarketplaceWebServiceConfig withProxyUsername(String proxyUsername)
proxyUsername - Proxy Username for connectionpublic boolean isSetProxyUsername()
public String getProxyPassword()
public void setProxyPassword(String proxyPassword)
proxyPassword - Proxy Password for connectionpublic MarketplaceWebServiceConfig withProxyPassword(String proxyPassword)
proxyPassword - Proxy Password for connectionpublic boolean isSetProxyPassword()
public int getMaxErrorRetry()
public void setMaxErrorRetry(int maxErrorRetry)
maxErrorRetry - Max number of retries on 500th errorspublic MarketplaceWebServiceConfig withMaxErrorRetry(int maxErrorRetry)
maxErrorRetry - Max number of retries on 500th errorspublic boolean isSetMaxErrorRetry()
public int getMaxAsyncThreads()
public void setMaxAsyncThreads(int maxAsyncThreads)
maxAsyncThreads - Max number of threads to spawn for async operation.
Note, this parameter works in conjuction with MaxAsyncQueueSize. When
Max number of threads is reached, requests will be stored in the queue.
If queue becomes full, request will be executed on the calling thread.
There is not a perfect combination of these two parameters, it will depend
on your particular environment. Experiment.public MarketplaceWebServiceConfig withMaxAsyncThreads(int maxAsyncThreads)
maxAsyncThreads - Max number of threads to spawn for async operation.
Note, this parameter works in conjuction with MaxAsyncQueueSize. When
Max number of threads is reached, requests will be stored in the queue.
If queue becomes full, request will be executed on the calling thread.
There is not a perfect combination of these two parameters, it will depend
on your particular environment. Experiment.public boolean isSetMaxAsyncThreads()
public int getMaxAsyncQueueSize()
public boolean isSetMaxAsyncQueueSize()
public void setMaxAsyncQueueSize(int maxAsyncQueueSize)
maxAsyncQueueSize - Max number of requests to queue when max number of
threads is reached, and all threads are busy processing.
Note, this parameter works in conjuction with MaxAsyncThreads.
When max number of threads is reached and queue is full, request will
be executed on the calling thread.
There is not a perfect combination of these two parameters, it will depend
on your particular environment. Experiment.public MarketplaceWebServiceConfig withMaxAsyncQueueSize(int maxAsyncQueueSize)
maxAsyncQueueSize - Max number of requests to queue when max number of
threads is reached, and all threads are busy processing.
Note, this parameter works in conjuction with MaxAsyncThreads.
When max number of threads is reached and queue is full, request will
be executed on the calling thread.
There is not a perfect combination of these two parameters, it will depend
on your particular environment. Experiment.Copyright © 2020. All rights reserved.