Index

B C E G H I N O R S T V W 
All Classes and Interfaces|All Packages

B

build() - Method in class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.HttpClientPoolBuilder
 
builder(ServerConfiguration) - Static method in class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.HttpClientPool
 

C

check() - Method in class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.HttpClientPool
Returns status HealthCheckResult.HealthStatus.OK if all httpClientsCache are healthy.
Returns status HealthCheckResult.HealthStatus.ERROR if all httpClientsCache are unhealthy.
Returns status HealthCheckResult.HealthStatus.WARNING if only some httpClientsCache are healthy.
close() - Method in class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.HttpClientPool
 
close() - Method in class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.SingleIpHttpClient
 
com.github.nhenneaux.resilienthttpclient.monitoredclientpool - package com.github.nhenneaux.resilienthttpclient.monitoredclientpool
 
ConnectionDetail - Class in com.github.nhenneaux.resilienthttpclient.monitoredclientpool
 
ConnectionDetail(String, String, URI, boolean) - Constructor for class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.ConnectionDetail
 

E

ERROR - Enum constant in enum com.github.nhenneaux.resilienthttpclient.monitoredclientpool.HealthCheckResult.HealthStatus
 

G

getDetails() - Method in class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.HealthCheckResult
 
getHealthUri() - Method in class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.ConnectionDetail
 
getHostAddress() - Method in class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.ConnectionDetail
 
getHostname() - Method in class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.ConnectionDetail
 
getHttpClient() - Method in class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.SingleIpHttpClient
 
getNextHttpClient() - Method in class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.HttpClientPool
Take the next HTTP client from the pool.
Please note that it uses a round-robin internally.
getStatus() - Method in class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.HealthCheckResult
 

H

HealthCheckResult - Class in com.github.nhenneaux.resilienthttpclient.monitoredclientpool
 
HealthCheckResult(HealthCheckResult.HealthStatus, List<ConnectionDetail>) - Constructor for class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.HealthCheckResult
 
HealthCheckResult.HealthStatus - Enum in com.github.nhenneaux.resilienthttpclient.monitoredclientpool
 
HttpClientPool - Class in com.github.nhenneaux.resilienthttpclient.monitoredclientpool
A HTTP clients pool which keeps internally a round robin list of HTTP clients.
Each HTTP client represents a connection to the acquirer using a distinct IP address, taken from endpoint resolving.
The number of distinct HTTP clients in this connection pool is equal to the number of different IP addresses for the given acquirer hostname.
HttpClientPool(DnsLookupWrapper, ScheduledExecutorService, ServerConfiguration, Function<InetAddress, HttpClient>) - Constructor for class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.HttpClientPool
 
HttpClientPoolBuilder - Class in com.github.nhenneaux.resilienthttpclient.monitoredclientpool
 

I

isHealthy() - Method in class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.ConnectionDetail
 
isHealthy() - Method in class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.SingleIpHttpClient
If called and the previous health status was unhealthy, then a new health check is performed.

N

newHttpClientPool(ServerConfiguration) - Static method in class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.HttpClientPool
 

O

OK - Enum constant in enum com.github.nhenneaux.resilienthttpclient.monitoredclientpool.HealthCheckResult.HealthStatus
 

R

resilientClient() - Method in class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.HttpClientPool
Return a resilient client with the following features.

S

SingleIpHttpClient - Class in com.github.nhenneaux.resilienthttpclient.monitoredclientpool
 
SingleIpHttpClient(HttpClient, InetAddress, ServerConfiguration) - Constructor for class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.SingleIpHttpClient
Create a new instance and check its health once.
SingleIpHttpClient(HttpClient, InetAddress, ServerConfiguration, ScheduledExecutorService) - Constructor for class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.SingleIpHttpClient
Create a new instance of the client and schedule a task to refresh is healthiness.

T

toString() - Method in class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.ConnectionDetail
 
toString() - Method in class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.HealthCheckResult
 
toString() - Method in class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.HttpClientPool
 
toString() - Method in class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.SingleIpHttpClient
 

V

valueOf(String) - Static method in enum com.github.nhenneaux.resilienthttpclient.monitoredclientpool.HealthCheckResult.HealthStatus
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.github.nhenneaux.resilienthttpclient.monitoredclientpool.HealthCheckResult.HealthStatus
Returns an array containing the constants of this enum type, in the order they are declared.

W

WARNING - Enum constant in enum com.github.nhenneaux.resilienthttpclient.monitoredclientpool.HealthCheckResult.HealthStatus
 
withDefaultDnsLookupWrapper() - Method in class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.HttpClientPoolBuilder
Adds a default DnsLookupWrapper instance
withDefaultScheduledExecutorService() - Method in class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.HttpClientPoolBuilder
Adds a default single-thread scheduled executor
withDnsLookupWrapper(DnsLookupWrapper) - Method in class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.HttpClientPoolBuilder
 
withScheduledExecutorService(ScheduledExecutorService) - Method in class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.HttpClientPoolBuilder
 
withSingleHostHttpClient(Function<InetAddress, HttpClient>) - Method in class com.github.nhenneaux.resilienthttpclient.monitoredclientpool.HttpClientPoolBuilder
 
B C E G H I N O R S T V W 
All Classes and Interfaces|All Packages