Package com.hazelcast.spi.utils
Class RestClient
java.lang.Object
com.hazelcast.spi.utils.RestClient
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intDefault value of -1 results in connection timeout not being explicitly definedstatic final intstatic final int
- 
Method SummaryModifier and TypeMethodDescriptionstatic RestClientstatic RestClientstatic RestClientcreateWithSSL(String url, String caCertificate) static RestClientcreateWithSSL(String url, String caCertificate, int connectTimeoutSeconds) expectResponseCodes(Integer... codes) get()post()put()Issues a watch request to a Kubernetes resource, starting with the givenresourceVersion.withHeader(String name, String value) withHeaders(Map<String, String> headers) withRequestTimeoutSeconds(int timeoutSeconds) withRetries(int retries) 
- 
Field Details- 
HTTP_OKpublic static final int HTTP_OK
- 
HTTP_NOT_FOUNDpublic static final int HTTP_NOT_FOUND
- 
DEFAULT_CONNECT_TIMEOUT_SECONDSpublic static final int DEFAULT_CONNECT_TIMEOUT_SECONDSDefault value of -1 results in connection timeout not being explicitly defined- See Also:
 
 
- 
- 
Method Details- 
create
- 
create
- 
createWithSSL
- 
createWithSSL
- 
withHeaders
- 
withHeader
- 
withBody
- 
withRequestTimeoutSeconds
- 
withRetries
- 
expectResponseCodes
- 
get
- 
post
- 
put
- 
watchIssues a watch request to a Kubernetes resource, starting with the givenresourceVersion. Since a watch implies a stream of updates from the server will be consumed, unlike other methods in this class, it is the responsibility of the consumer to disconnect the connection (by invokingRestClient.WatchResponse.disconnect()) once the watch is no longer required.- Throws:
- RestClientException
 
 
-