diff --git a/.flattened-pom.xml b/.flattened-pom.xml
deleted file mode 100644
index f95c5e4c..00000000
--- a/.flattened-pom.xml
+++ /dev/null
@@ -1,131 +0,0 @@
-
-
- 4.0.0
-
- org.springframework.cloud
- spring-cloud-build
- 2.2.0.RELEASE
-
-
- org.springframework.cloud
- spring-cloud-commons-parent
- 2.2.0.BUILD-SNAPSHOT
- pom
- Spring Cloud Commons Parent
- Spring Cloud Commons Parent
- https://projects.spring.io/spring-cloud/
-
- Pivotal Software, Inc.
- https://www.spring.io
-
-
-
- Apache License, Version 2.0
- https://www.apache.org/licenses/LICENSE-2.0
- Copyright 2014-2015 the original author or authors.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- https://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied.
-
- See the License for the specific language governing permissions and
- limitations under the License.
-
-
-
-
- dsyer
- Dave Syer
- dsyer at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- lead
-
-
-
- sgibb
- Spencer Gibb
- sgibb at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- lead
-
-
-
- mgrzejszczak
- Marcin Grzejszczak
- mgrzejszczak at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- developer
-
-
-
- rbaxter
- Ryan Baxter
- rbaxter at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- developer
-
-
-
- omaciaszeksharma
- Olga Maciaszek-Sharma
- omaciaszeksharma at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- developer
-
-
-
-
- scm:git:git://github.com/spring-cloud/spring-cloud-commons.git
- scm:git:ssh://git@github.com/spring-cloud/spring-cloud-commons.git
- https://github.com/spring-cloud/spring-cloud-commons
-
-
-
- spring
-
-
-
- true
-
- spring-snapshots
- Spring Snapshots
- https://repo.spring.io/libs-snapshot-local
-
-
-
- false
-
- spring-milestones
- Spring Milestones
- https://repo.spring.io/libs-milestone-local
-
-
-
- false
-
- spring-releases
- Spring Releases
- https://repo.spring.io/release
-
-
-
-
-
diff --git a/.gitignore b/.gitignore
index 1b8abd7d..32c1a89f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,3 +20,4 @@ _site/
/spring-cloud-release-tools*.jar
antrun
.vscode/
+.flattened-pom.xml
\ No newline at end of file
diff --git a/docs/.flattened-pom.xml b/docs/.flattened-pom.xml
deleted file mode 100644
index a943d960..00000000
--- a/docs/.flattened-pom.xml
+++ /dev/null
@@ -1,113 +0,0 @@
-
-
- 4.0.0
-
- org.springframework.cloud
- spring-cloud-commons-parent
- 2.2.0.BUILD-SNAPSHOT
-
- org.springframework.cloud
- spring-cloud-commons-docs
- 2.2.0.BUILD-SNAPSHOT
- pom
- Spring Cloud Commons Docs
- Spring Cloud Commons Docs
- https://projects.spring.io/spring-cloud/spring-cloud-commons-docs/
-
- Pivotal Software, Inc.
- https://www.spring.io
-
-
-
- Apache License, Version 2.0
- https://www.apache.org/licenses/LICENSE-2.0
- Copyright 2014-2015 the original author or authors.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- https://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied.
-
- See the License for the specific language governing permissions and
- limitations under the License.
-
-
-
-
- dsyer
- Dave Syer
- dsyer at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- lead
-
-
-
- sgibb
- Spencer Gibb
- sgibb at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- lead
-
-
-
- mgrzejszczak
- Marcin Grzejszczak
- mgrzejszczak at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- developer
-
-
-
- rbaxter
- Ryan Baxter
- rbaxter at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- developer
-
-
-
- omaciaszeksharma
- Olga Maciaszek-Sharma
- omaciaszeksharma at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- developer
-
-
-
-
- scm:git:git://github.com/spring-cloud/spring-cloud-commons.git/spring-cloud-commons-docs
- scm:git:ssh://git@github.com/spring-cloud/spring-cloud-commons.git/spring-cloud-commons-docs
- https://github.com/spring-cloud/spring-cloud-commons/spring-cloud-commons-docs
-
-
-
- org.springframework.cloud
- spring-cloud-starter
- 2.2.0.BUILD-SNAPSHOT
- compile
-
-
- org.springframework.cloud
- spring-cloud-starter-loadbalancer
- 2.2.0.BUILD-SNAPSHOT
- compile
-
-
-
diff --git a/docs/src/main/asciidoc/spring-cloud-commons.adoc b/docs/src/main/asciidoc/spring-cloud-commons.adoc
index 43299c83..bc6b7d13 100644
--- a/docs/src/main/asciidoc/spring-cloud-commons.adoc
+++ b/docs/src/main/asciidoc/spring-cloud-commons.adoc
@@ -803,19 +803,32 @@ in the following sections:
=== Spring Cloud LoadBalancer Caching
-Apart from the basic `ServiceInstanceListSupplier` implementation that retrieves instances
-via `DiscoveryClient` each time it has to choose an instance, we provide a https://github.com/ben-manes/caffeine[Caffeine-backed]
-implementation.
-To make use of it, you need to have `com.github.ben-manes.caffeine:caffeine` in the classpath.
-The default setup includes `expireAfterWrite` set to 30 seconds and records set to soft references.
+Apart from the basic `ServiceInstanceListSupplier` implementation that retrieves instances via `DiscoveryClient` each time it has to choose an instance, we provide two caching implementations.
-You can set your own `TTL` value (the time after write after which entries should be expired), expressed as `Duration`, by passing a `String` compliant with the https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-features.html#boot-features-external-config-conversion-duration[Spring Boot `String` to `Duration` converter syntax].
-as the value of `spring.cloud.loadbalancer.cache.ttl` property.
+==== https://github.com/ben-manes/caffeine[Caffeine]-backed LoadBalancer Cache Implementation
+If you have `com.github.ben-manes.caffeine:caffeine` in the classpath, Caffeine-based implementation will be used.
+See the <> section for information on how to configure it.
-You can also override the default Caffeine Cache setup for the LoadBalancer by passing your own https://static.javadoc.io/com.github.ben-manes.caffeine/caffeine/2.2.2/com/github/benmanes/caffeine/cache/CaffeineSpec.html[Caffeine Specification]
+If you are using Caffeine, you can also override the default Caffeine Cache setup for the LoadBalancer by passing your own https://static.javadoc.io/com.github.ben-manes.caffeine/caffeine/2.2.2/com/github/benmanes/caffeine/cache/CaffeineSpec.html[Caffeine Specification]
in the `spring.cloud.loadbalancer.cache.caffeine.spec` property.
-WARN: Passing your own Caffeine specification will override any other LoadBalancerCache settings, including `TTL`.
+WARN: Passing your own Caffeine specification will override any other LoadBalancerCache settings, including <> fields, such as `ttl` and `capacity`.
+
+==== Default LoadBalancer Cache Implementation
+
+If you do not have Caffeine in the classpath, the `DefaultLoadBalancerCache`, which comes automatically with `spring-cloud-starter-loadbalancer`, will be used.
+See the <> section for information on how to configure it.
+
+TIP: To use Caffeine instead of the default cache, add the `com.github.ben-manes.caffeine:caffeine` dependency to classpath.
+
+[[loadbalancer-cache-configuration]]
+==== LoadBalancer Cache Configuration
+
+You can set your own `ttl` value (the time after write after which entries should be expired), expressed as `Duration`, by passing a `String` compliant with the https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-features.html#boot-features-external-config-conversion-duration[Spring Boot `String` to `Duration` converter syntax].
+as the value of the `spring.cloud.loadbalancer.cache.ttl` property.
+You can also set your own LoadBalancer cache initial capacity by setting the value of the `spring.cloud.loadbalancer.cache.capacity` property.
+
+The default setup includes `ttl` set to 30 seconds and the default `initialCapacity` is `256`.
You can also altogether disable loadBalancer caching by setting the value of `spring.cloud.loadbalancer.cache.enabled`
to `false`.
@@ -831,7 +844,8 @@ In order to use it, just add `org.springframework.cloud:spring-cloud-starter-loa
Cloud dependencies in your build file.
NOTE: Spring Cloud LoadBalancer starter includes
-https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-caching.html[Spring Boot Caching].
+https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-caching.html[Spring Boot Caching]
+and https://github.com/stoyanr[Evictor].
WARNING: If you have both Ribbon and Spring Cloud LoadBalancer int the classpath, in order to maintain
backward compatibility, Ribbon-based implementations will be used by default. In order
diff --git a/pom.xml b/pom.xml
index 3cd01d68..8b361d2b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -27,6 +27,7 @@
commons
+ 1.0.0
diff --git a/spring-cloud-commons/.flattened-pom.xml b/spring-cloud-commons/.flattened-pom.xml
deleted file mode 100644
index aa25d3b8..00000000
--- a/spring-cloud-commons/.flattened-pom.xml
+++ /dev/null
@@ -1,227 +0,0 @@
-
-
- 4.0.0
-
- org.springframework.cloud
- spring-cloud-commons-parent
- 2.2.0.BUILD-SNAPSHOT
- ..
-
- org.springframework.cloud
- spring-cloud-commons
- 2.2.0.BUILD-SNAPSHOT
- Spring Cloud Commons
- Spring Cloud Commons
- https://projects.spring.io/spring-cloud/spring-cloud-commons/
-
- Pivotal Software, Inc.
- https://www.spring.io
-
-
-
- Apache License, Version 2.0
- https://www.apache.org/licenses/LICENSE-2.0
- Copyright 2014-2015 the original author or authors.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- https://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied.
-
- See the License for the specific language governing permissions and
- limitations under the License.
-
-
-
-
- dsyer
- Dave Syer
- dsyer at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- lead
-
-
-
- sgibb
- Spencer Gibb
- sgibb at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- lead
-
-
-
- mgrzejszczak
- Marcin Grzejszczak
- mgrzejszczak at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- developer
-
-
-
- rbaxter
- Ryan Baxter
- rbaxter at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- developer
-
-
-
- omaciaszeksharma
- Olga Maciaszek-Sharma
- omaciaszeksharma at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- developer
-
-
-
-
- scm:git:git://github.com/spring-cloud/spring-cloud-commons.git/spring-cloud-commons
- scm:git:ssh://git@github.com/spring-cloud/spring-cloud-commons.git/spring-cloud-commons
- https://github.com/spring-cloud/spring-cloud-commons/spring-cloud-commons
-
-
-
- org.springframework.boot
- spring-boot-configuration-processor
- 2.2.1.RELEASE
- compile
- true
-
-
- org.springframework.boot
- spring-boot-starter-actuator
- 2.2.1.RELEASE
- compile
- true
-
-
- org.springframework.boot
- spring-boot-starter-web
- 2.2.1.RELEASE
- compile
- true
-
-
- org.springframework.boot
- spring-boot-starter-webflux
- 2.2.1.RELEASE
- compile
- true
-
-
- org.springframework.security
- spring-security-crypto
- 5.2.1.RELEASE
- compile
-
-
- org.springframework.security
- spring-security-rsa
- 1.0.7.RELEASE
- compile
-
-
- spring-core
- org.springframework
-
-
- spring-security-crypto
- org.springframework.security
-
-
- true
-
-
- org.springframework.integration
- spring-integration-jmx
- 5.2.1.RELEASE
- compile
- true
-
-
- org.springframework.boot
- spring-boot-starter-hateoas
- 2.2.1.RELEASE
- compile
- true
-
-
- org.springframework.boot
- spring-boot-starter-aop
- 2.2.1.RELEASE
- compile
- true
-
-
- org.springframework.boot
- spring-boot-autoconfigure-processor
- 2.2.1.RELEASE
- compile
- true
-
-
- org.springframework.retry
- spring-retry
- 1.2.4.RELEASE
- compile
-
-
- spring-core
- org.springframework
-
-
- true
-
-
- com.jayway.jsonpath
- json-path
- 2.4.0
- compile
- true
-
-
- com.squareup.okhttp3
- okhttp
- 3.6.0
- compile
- true
-
-
- com.squareup.okhttp3
- logging-interceptor
- 3.6.0
- compile
- true
-
-
- org.apache.httpcomponents
- httpclient
- 4.5.4
- compile
-
-
- commons-logging
- commons-logging
-
-
- true
-
-
-
diff --git a/spring-cloud-commons/pom.xml b/spring-cloud-commons/pom.xml
index 875ca30f..35bc9f9a 100644
--- a/spring-cloud-commons/pom.xml
+++ b/spring-cloud-commons/pom.xml
@@ -68,6 +68,7 @@
3.6.04.5.4
+ 1.0.0
diff --git a/spring-cloud-context-integration-tests/.flattened-pom.xml b/spring-cloud-context-integration-tests/.flattened-pom.xml
deleted file mode 100644
index c1b9d7b8..00000000
--- a/spring-cloud-context-integration-tests/.flattened-pom.xml
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
- 4.0.0
-
- org.springframework.cloud
- spring-cloud-commons-parent
- 2.2.0.BUILD-SNAPSHOT
- ..
-
- org.springframework.cloud
- spring-cloud-context-integration-tests
- 2.2.0.BUILD-SNAPSHOT
- spring-cloud-context-integration-tests
- Spring Cloud Context
- https://projects.spring.io/spring-cloud/spring-cloud-context-integration-tests/
-
- Pivotal Software, Inc.
- https://www.spring.io
-
-
-
- Apache License, Version 2.0
- https://www.apache.org/licenses/LICENSE-2.0
- Copyright 2014-2015 the original author or authors.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- https://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied.
-
- See the License for the specific language governing permissions and
- limitations under the License.
-
-
-
-
- dsyer
- Dave Syer
- dsyer at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- lead
-
-
-
- sgibb
- Spencer Gibb
- sgibb at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- lead
-
-
-
- mgrzejszczak
- Marcin Grzejszczak
- mgrzejszczak at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- developer
-
-
-
- rbaxter
- Ryan Baxter
- rbaxter at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- developer
-
-
-
- omaciaszeksharma
- Olga Maciaszek-Sharma
- omaciaszeksharma at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- developer
-
-
-
-
- scm:git:git://github.com/spring-cloud/spring-cloud-commons.git/spring-cloud-context-integration-tests
- scm:git:ssh://git@github.com/spring-cloud/spring-cloud-commons.git/spring-cloud-context-integration-tests
- https://github.com/spring-cloud/spring-cloud-commons/spring-cloud-context-integration-tests
-
-
-
- org.springframework.cloud
- spring-cloud-context
- 2.2.0.BUILD-SNAPSHOT
- compile
-
-
- org.springframework.boot
- spring-boot-starter-actuator
- 2.2.1.RELEASE
- compile
-
-
- org.springframework.boot
- spring-boot-starter-web
- 2.2.1.RELEASE
- compile
-
-
- org.springframework.boot
- spring-boot-starter-aop
- 2.2.1.RELEASE
- compile
-
-
- org.springframework.integration
- spring-integration-jmx
- 5.2.1.RELEASE
- compile
-
-
- org.springframework.boot
- spring-boot-configuration-processor
- 2.2.1.RELEASE
- compile
- true
-
-
-
diff --git a/spring-cloud-context/.flattened-pom.xml b/spring-cloud-context/.flattened-pom.xml
deleted file mode 100644
index 0de6bf62..00000000
--- a/spring-cloud-context/.flattened-pom.xml
+++ /dev/null
@@ -1,172 +0,0 @@
-
-
- 4.0.0
-
- org.springframework.cloud
- spring-cloud-commons-parent
- 2.2.0.BUILD-SNAPSHOT
- ..
-
- org.springframework.cloud
- spring-cloud-context
- 2.2.0.BUILD-SNAPSHOT
- Spring Cloud Context
- Spring Cloud Context
- https://projects.spring.io/spring-cloud/spring-cloud-context/
-
- Pivotal Software, Inc.
- https://www.spring.io
-
-
-
- Apache License, Version 2.0
- https://www.apache.org/licenses/LICENSE-2.0
- Copyright 2014-2015 the original author or authors.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- https://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied.
-
- See the License for the specific language governing permissions and
- limitations under the License.
-
-
-
-
- dsyer
- Dave Syer
- dsyer at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- lead
-
-
-
- sgibb
- Spencer Gibb
- sgibb at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- lead
-
-
-
- mgrzejszczak
- Marcin Grzejszczak
- mgrzejszczak at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- developer
-
-
-
- rbaxter
- Ryan Baxter
- rbaxter at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- developer
-
-
-
- omaciaszeksharma
- Olga Maciaszek-Sharma
- omaciaszeksharma at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- developer
-
-
-
-
- scm:git:git://github.com/spring-cloud/spring-cloud-commons.git/spring-cloud-context
- scm:git:ssh://git@github.com/spring-cloud/spring-cloud-commons.git/spring-cloud-context
- https://github.com/spring-cloud/spring-cloud-commons/spring-cloud-context
-
-
-
- org.springframework.boot
- spring-boot-configuration-processor
- 2.2.1.RELEASE
- compile
- true
-
-
- org.springframework.boot
- spring-boot-starter-actuator
- 2.2.1.RELEASE
- compile
-
-
- log4j-to-slf4j
- org.apache.logging.log4j
-
-
- true
-
-
- org.springframework.boot
- spring-boot-starter-web
- 2.2.1.RELEASE
- compile
- true
-
-
- org.springframework.boot
- spring-boot-starter-aop
- 2.2.1.RELEASE
- compile
- true
-
-
- org.springframework.security
- spring-security-crypto
- 5.2.1.RELEASE
- compile
-
-
- org.springframework.security
- spring-security-rsa
- 1.0.7.RELEASE
- compile
-
-
- spring-core
- org.springframework
-
-
- spring-security-crypto
- org.springframework.security
-
-
- true
-
-
- org.springframework.integration
- spring-integration-jmx
- 5.2.1.RELEASE
- compile
- true
-
-
- org.springframework.boot
- spring-boot-autoconfigure-processor
- 2.2.1.RELEASE
- compile
- true
-
-
-
diff --git a/spring-cloud-loadbalancer/.flattened-pom.xml b/spring-cloud-loadbalancer/.flattened-pom.xml
deleted file mode 100644
index 41d4d6b9..00000000
--- a/spring-cloud-loadbalancer/.flattened-pom.xml
+++ /dev/null
@@ -1,173 +0,0 @@
-
-
- 4.0.0
-
- org.springframework.cloud
- spring-cloud-commons-parent
- 2.2.0.BUILD-SNAPSHOT
- ..
-
- org.springframework.cloud
- spring-cloud-loadbalancer
- 2.2.0.BUILD-SNAPSHOT
- Spring Cloud Load Balancer
- Spring Cloud Balancer
- https://projects.spring.io/spring-cloud/spring-cloud-loadbalancer/
-
- Pivotal Software, Inc.
- https://www.spring.io
-
-
-
- Apache License, Version 2.0
- https://www.apache.org/licenses/LICENSE-2.0
- Copyright 2014-2015 the original author or authors.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- https://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied.
-
- See the License for the specific language governing permissions and
- limitations under the License.
-
-
-
-
- dsyer
- Dave Syer
- dsyer at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- lead
-
-
-
- sgibb
- Spencer Gibb
- sgibb at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- lead
-
-
-
- mgrzejszczak
- Marcin Grzejszczak
- mgrzejszczak at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- developer
-
-
-
- rbaxter
- Ryan Baxter
- rbaxter at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- developer
-
-
-
- omaciaszeksharma
- Olga Maciaszek-Sharma
- omaciaszeksharma at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- developer
-
-
-
-
- scm:git:git://github.com/spring-cloud/spring-cloud-commons.git/spring-cloud-loadbalancer
- scm:git:ssh://git@github.com/spring-cloud/spring-cloud-commons.git/spring-cloud-loadbalancer
- https://github.com/spring-cloud/spring-cloud-commons/spring-cloud-loadbalancer
-
-
-
- org.springframework.cloud
- spring-cloud-commons
- 2.2.0.BUILD-SNAPSHOT
- compile
-
-
- org.springframework.cloud
- spring-cloud-context
- 2.2.0.BUILD-SNAPSHOT
- compile
-
-
- org.springframework.boot
- spring-boot-starter-actuator
- 2.2.1.RELEASE
- compile
-
-
- log4j-to-slf4j
- org.apache.logging.log4j
-
-
- true
-
-
- io.projectreactor
- reactor-core
- 3.3.0.RELEASE
- compile
-
-
- io.projectreactor.addons
- reactor-extra
- 3.3.0.RELEASE
- compile
-
-
- org.springframework.boot
- spring-boot-autoconfigure-processor
- 2.2.1.RELEASE
- compile
- true
-
-
- org.springframework.boot
- spring-boot-configuration-processor
- 2.2.1.RELEASE
- compile
- true
-
-
- org.springframework.boot
- spring-boot-starter-webflux
- 2.2.1.RELEASE
- compile
- true
-
-
- org.springframework.boot
- spring-boot-starter-cache
- 2.2.1.RELEASE
- compile
- true
-
-
- com.github.ben-manes.caffeine
- caffeine
- 2.8.0
- compile
- true
-
-
-
diff --git a/spring-cloud-loadbalancer/pom.xml b/spring-cloud-loadbalancer/pom.xml
index 69c14c26..09e92db6 100644
--- a/spring-cloud-loadbalancer/pom.xml
+++ b/spring-cloud-loadbalancer/pom.xml
@@ -3,7 +3,6 @@
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
-
org.springframework.cloudspring-cloud-commons-parent
@@ -68,6 +67,12 @@
caffeinetrue
+
+ com.stoyanr
+ evictor
+ ${evictor.version}
+ true
+ org.springframework.bootspring-boot-starter-test
diff --git a/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/cache/CaffeineBasedLoadBalancerCacheManager.java b/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/cache/CaffeineBasedLoadBalancerCacheManager.java
index a7c40601..863ebb34 100644
--- a/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/cache/CaffeineBasedLoadBalancerCacheManager.java
+++ b/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/cache/CaffeineBasedLoadBalancerCacheManager.java
@@ -29,6 +29,9 @@ import static org.springframework.cloud.loadbalancer.core.CachingServiceInstance
*
* @author Olga Maciaszek-Sharma
* @since 2.2.0
+ * @see Evictor
+ * @see ConcurrentMapWithTimedEviction
+ * @see ConcurrentMapCache
+ */
+public class DefaultLoadBalancerCache extends AbstractValueAdaptingCache {
+
+ private final String name;
+
+ private final ConcurrentMapWithTimedEviction
+
+ com.stoyanr
+ evictor
+ ${evictor.version}
+
\ No newline at end of file
diff --git a/spring-cloud-starter/.flattened-pom.xml b/spring-cloud-starter/.flattened-pom.xml
deleted file mode 100644
index de845787..00000000
--- a/spring-cloud-starter/.flattened-pom.xml
+++ /dev/null
@@ -1,141 +0,0 @@
-
-
- 4.0.0
-
- org.springframework.cloud
- spring-cloud-commons-parent
- 2.2.0.BUILD-SNAPSHOT
-
- org.springframework.cloud
- spring-cloud-starter
- 2.2.0.BUILD-SNAPSHOT
- spring-cloud-starter
- Spring Cloud Starter
- https://projects.spring.io/spring-cloud
-
- Pivotal Software, Inc.
- https://www.spring.io
-
-
-
- Apache License, Version 2.0
- https://www.apache.org/licenses/LICENSE-2.0
- Copyright 2014-2015 the original author or authors.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- https://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied.
-
- See the License for the specific language governing permissions and
- limitations under the License.
-
-
-
-
- dsyer
- Dave Syer
- dsyer at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- lead
-
-
-
- sgibb
- Spencer Gibb
- sgibb at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- lead
-
-
-
- mgrzejszczak
- Marcin Grzejszczak
- mgrzejszczak at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- developer
-
-
-
- rbaxter
- Ryan Baxter
- rbaxter at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- developer
-
-
-
- omaciaszeksharma
- Olga Maciaszek-Sharma
- omaciaszeksharma at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- developer
-
-
-
-
- scm:git:git://github.com/spring-cloud/spring-cloud-commons.git/spring-cloud-starter
- scm:git:ssh://git@github.com/spring-cloud/spring-cloud-commons.git/spring-cloud-starter
- https://github.com/spring-cloud/spring-cloud-commons/spring-cloud-starter
-
-
-
- org.springframework.boot
- spring-boot-starter
- 2.2.1.RELEASE
- compile
-
-
- org.springframework.cloud
- spring-cloud-context
- 2.2.0.BUILD-SNAPSHOT
- compile
-
-
- org.springframework.cloud
- spring-cloud-commons
- 2.2.0.BUILD-SNAPSHOT
- compile
-
-
- org.springframework.security
- spring-security-rsa
- 1.0.7.RELEASE
- compile
-
-
- spring-core
- org.springframework
-
-
- spring-security-crypto
- org.springframework.security
-
-
-
-
- org.projectlombok
- lombok
- 1.18.10
- compile
- true
-
-
-
diff --git a/spring-cloud-test-support/.flattened-pom.xml b/spring-cloud-test-support/.flattened-pom.xml
deleted file mode 100644
index b10a93d8..00000000
--- a/spring-cloud-test-support/.flattened-pom.xml
+++ /dev/null
@@ -1,149 +0,0 @@
-
-
- 4.0.0
-
- org.springframework.cloud
- spring-cloud-commons-parent
- 2.2.0.BUILD-SNAPSHOT
- ..
-
- org.springframework.cloud
- spring-cloud-test-support
- 2.2.0.BUILD-SNAPSHOT
- spring-cloud-test-support
- Spring Cloud Test Support
- https://projects.spring.io/spring-cloud/spring-cloud-test-support/
-
- Pivotal Software, Inc.
- https://www.spring.io
-
-
-
- Apache License, Version 2.0
- https://www.apache.org/licenses/LICENSE-2.0
- Copyright 2014-2015 the original author or authors.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- https://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied.
-
- See the License for the specific language governing permissions and
- limitations under the License.
-
-
-
-
- dsyer
- Dave Syer
- dsyer at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- lead
-
-
-
- sgibb
- Spencer Gibb
- sgibb at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- lead
-
-
-
- mgrzejszczak
- Marcin Grzejszczak
- mgrzejszczak at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- developer
-
-
-
- rbaxter
- Ryan Baxter
- rbaxter at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- developer
-
-
-
- omaciaszeksharma
- Olga Maciaszek-Sharma
- omaciaszeksharma at pivotal.io
- Pivotal Software, Inc.
- https://www.spring.io
-
- developer
-
-
-
-
- scm:git:git://github.com/spring-cloud/spring-cloud-commons.git/spring-cloud-test-support
- scm:git:ssh://git@github.com/spring-cloud/spring-cloud-commons.git/spring-cloud-test-support
- https://github.com/spring-cloud/spring-cloud-commons/spring-cloud-test-support
-
-
-
- org.apache.maven.resolver
- maven-resolver-connector-basic
- 1.1.1
- compile
-
-
- org.apache.maven.resolver
- maven-resolver-impl
- 1.1.1
- compile
-
-
- org.apache.maven
- maven-resolver-provider
- 3.5.4
- compile
-
-
- guava
- com.google.guava
-
-
-
-
- org.apache.maven.resolver
- maven-resolver-transport-http
- 1.1.1
- compile
-
-
- jcl-over-slf4j
- org.slf4j
-
-
-
-
- junit
- junit
- 4.12
- compile
-
-
- org.springframework
- spring-core
- 5.2.1.RELEASE
- compile
-
-
-