Brian Clozel
7bee3d1574
Optimize Jackson resource management in codecs
...
Prior to this commit, references to `JsonGenerator` and
`ByteArrayBuilder` were not closed/released within codecs calls.
This prevents Jackson from reusing more efficiently shared memory
resources.
This commit properly closes/releases Jackson resources in Spring MVC,
Spring WebFlux and Spring Messaging codecs.
A benchmark on WebFlux codecs (in both single value/streaming mode)
shows significant throughput and allocation improvements for small
payloads.
Closes gh-25910
6 years ago
Juergen Hoeller
f3f19504c6
Polishing
6 years ago
Juergen Hoeller
e176c4e799
Polishing
6 years ago
Juergen Hoeller
66a67ec807
Polishing
6 years ago
Juergen Hoeller
f83bb7183e
Polishing
6 years ago
Rossen Stoyanchev
86f2ebec1b
Fix recursion issue caused by previous commit
...
See gh-25821
6 years ago
Rossen Stoyanchev
7ad60d385b
Fix issue with copying headers in NativeMessageHeaderAccessor
...
Closes gh-25821
6 years ago
Rossen Stoyanchev
4b9c3fa739
Polishing Javadoc
...
See gh-25821
6 years ago
Juergen Hoeller
6e4fcb69f0
Polishing
6 years ago
Juergen Hoeller
9dfef59af2
Construct StringWriter instances with appropriate initial size
...
Closes gh-25789
6 years ago
Juergen Hoeller
cf2e0c7959
Selected use of ArrayList instead of LinkedList in common places
...
See gh-25652
6 years ago
Sam Brannen
bd65762582
Polish Javadoc for MessagePostProcessor interfaces
...
See gh-25571
6 years ago
Philippe Marschall
6a7e58ac82
Add @FunctionalInterface to MessagePostProcessor
...
Add the @FunctionalInterface annotation to the MessagePostProcessor
interfaces in the spring-jms and spring-messaging projects.
Closes gh-25571
6 years ago
Juergen Hoeller
8dd285f877
Polishing
6 years ago
XenoAmess
ab859fcc96
Refine use of substring operations
...
Closes gh-25445
6 years ago
Rossen Stoyanchev
b2a4d1c5b1
Avoid re-creating connect Mono<RSocket>
...
Closes gh-25330
6 years ago
Rossen Stoyanchev
1d0fe1223d
Fix checkstyle violation
6 years ago
Rossen Stoyanchev
b48ddef4c6
Upgrade to RSocket 1.0.1
6 years ago
Juergen Hoeller
c35b21b49f
Consistent not-null assertions for configured interceptors
...
Closes gh-25088
6 years ago
Rossen Stoyanchev
ef27bc4b82
Upgrade to RSocket 1.0.0
...
Closes gh-25053
6 years ago
Rossen Stoyanchev
2002a1689a
Adapt test to changes in RSocket Java
...
See gh-24934
6 years ago
Sam Brannen
5eba1ae73c
Avoid deprecation warning in DefaultRSocketRequesterBuilderTests
6 years ago
Rossen Stoyanchev
1904e9b7e7
Disable failing test temporarily
6 years ago
Rossen Stoyanchev
ed8c61a852
Upgrade to RSocket 1.0 RC7 snapshots
6 years ago
Sébastien Deleuze
3c354a9b18
Avoid using Mockito argument matcher in Mockk test
6 years ago
陈其苗
13970ae528
Use autoboxing instead of explicit wrapping in tests
...
Closes gh-24801
6 years ago
Rossen Stoyanchev
95ef9c25c2
Reduce byte[] allocations in StompEncoder
...
Closes gh-24694
6 years ago
Sam Brannen
e26764d249
Remove duplicate words in documentation and polish Javadoc
6 years ago
Sam Brannen
9e30620ac2
Polish contribution
...
See gh-24805
6 years ago
Сергей Цыпанов
e63d1cf12d
Improve usage of ByteArrayOutputStream/ByteArrayInputStream
...
Closes gh-24805
6 years ago
Qimiao Chen
7c831d2ef4
Replace anonymous inner classes with lambdas in tests
...
Closes gh-24808
6 years ago
Rossen Stoyanchev
3175f0771e
Remove dumpString from DataBufferTestUtils
...
See gh-24786
6 years ago
Sam Brannen
6222efc54b
Polish contribution
...
See gh-24785
6 years ago
Сергей Цыпанов
65aa2d03f0
Simplify conversion of ByteArrayOutputStream to String
...
Closes gh-24785
6 years ago
Qimiao Chen
09b36380cd
Fix typos in source files
...
Closes gh-24746
6 years ago
Rossen Stoyanchev
7efb62091d
MessagingRSocket correctly handles unconsumed input
...
Closes gh-24741
6 years ago
Rossen Stoyanchev
5b27df772a
Suppress deprecation warning
...
See gh-24725
6 years ago
Sam Brannen
a8feb792da
Fix broken Javadoc links
6 years ago
Rossen Stoyanchev
4aedf2ea13
MetadataEncoder expands vars correctly
...
Closes gh-24656
6 years ago
ZhangT
c5fb7b9fb7
Simplify some redundant code
...
Closes gh-24586
Co-authored-by: Sam Brannen <sbrannen@pivotal.io>
6 years ago
Hyunjin Choi
ede2a1d4b2
Remove unnecessary semicolon in some enum classes
6 years ago
Rossen Stoyanchev
28a95e89f3
Upgrade to Dysprosium SR5 snapshots
...
See gh-24355
6 years ago
Rossen Stoyanchev
3c0c0c0597
Fix issue with new line handling in StompDecoder
...
Closes gh-23713
6 years ago
Sam Brannen
94f8ef08e2
Move common TestPrincipal to spring-core test fixtures
...
See gh-23550
6 years ago
Sam Brannen
4260c34b47
Rename test fixture package in spring-core
...
See gh-23550
6 years ago
Sam Brannen
5718bf424b
Use Gradle test fixture support for spring-core
...
See gh-23550
6 years ago
Sam Brannen
1b4fd1cba1
Polishing
6 years ago
Sébastien Deleuze
0f41536820
Fix RSocketRequester Coroutines extensions
...
After gh-24073, some Coroutines extensions should be applied on
RetrieveSpec instead of RequestSpec.
Closes gh-24166
6 years ago
Sam Brannen
55ae3c5e87
Polishing
6 years ago
Brian Clozel
d4209392d2
Allow ExchangeStrategies customizations in WebClient
...
Prior to this commit, developers could configure their WebClient to use
their custom `ExchangeStrategies`, by providing it in the
`WebClient.Builder` chain.
Once created, an `ExchangeStrategies` instance is not mutable, which
makes it hard for further customizations by other components. In the
case of the reported issue, other components would override the default
configuration for the codecs maxInMemorySize.
This commit makes the `ExchangeStrategies` mutable and uses that fact to
further customize them with a new `WebClient.Builder#exchangeStrategies`
`Consumer` variant. This commit is also deprecating those mutating
variants in favor of a new `WebClient.Builder#exchangeStrategies` that
takes a `ExchangeStrategies#Builder` directly and avoids mutation issues
altogether.
Closes gh-23961
6 years ago