Commit Graph

30 Commits

Author SHA1 Message Date
Gary Russell
0b495cb5ba GH-53: Fix @KafkaListener autoStartup 2016-04-01 17:08:50 -04:00
Gary Russell
a087ce21b3 GH-49: Add MessageConversion and JSON
Resolves: #49

Polishing - PR Comments
2016-04-01 16:23:13 -04:00
Gary Russell
4cf24fbf28 GH-42: Ignore Bridged Methods
Resolves #42

Convert to MethodIntrospector

Polishing

* Use more simple `selectMethods` for `boolean` case
* Add `spring-tx` dependency
* add `@Transactional` test-case to be sure that our job around proxies is fine
2016-03-31 16:33:05 -04:00
Gary Russell
4bcac8163c GH-48: More Test Utilities
Resolves #48
2016-03-31 15:57:55 -04:00
Gary Russell
753d9bdb89 GH-45: Add RECEIVED... Headers
Resolves #45

Avoid propagation of received headers when sending `o.s.messaging.Message`s.

Also add `Message<?>` methods to the template.

GH-45: Polishing

Remove Extra Spaces
2016-03-31 10:15:10 -04:00
Gary Russell
dc19f0cd89 GH-39-44: Template Changes
Resolves #39
Resolves #44

Remove `convert` from method names.
Add missing methods - no key.

Also remove log4j.properties from test jar.

Polishing according PR comments
2016-03-30 16:24:27 -04:00
Eddú Meléndez
adf6fc2680 GH-22: Upgrade to Sonarqube plugin
Fixes GH-22 (https://github.com/spring-projects/spring-kafka/issues/22)
2016-03-14 20:02:08 -04:00
Spring Buildmaster
bf07c91e1d [artifactory-release] Next development version 2016-03-11 09:09:44 -08:00
Spring Buildmaster
d18a704b9b [artifactory-release] Release version 1.0.0.M1 2016-03-11 09:09:39 -08:00
Artem Bilan
dd55e2ac19 Fix typos in JavaDocs 2016-03-11 10:28:57 -05:00
Artem Bilan
00b221bb80 Fix JavaDocs and ALL Checkstyle rules 2016-03-11 09:11:34 -05:00
Gary Russell
bcbf606fe4 GH-36: Port ProducerListener from S-I-K
Resolves #36 (https://github.com/spring-projects/spring-kafka/issues/36)

Polishing according PR comments
2016-03-10 18:08:59 -05:00
Gary Russell
03479eb851 GH-31: Document ProducerListener
(cherry picked from commit 67779a7)
2016-03-10 16:47:43 -05:00
Gary Russell
17d8f081b4 GH-31: Initial Docs
Resolves #31

Use Constants for Producer/Consumer Config

Polishing and fix typos
2016-03-10 16:44:32 -05:00
Artem Bilan
3e4c145f8b GH-29: Migrate to AssertJ. Enable its Check Rule
Fixes GH-29 (https://github.com/spring-projects/spring-kafka/issues/29)

Polishing
2016-03-10 15:43:11 -05:00
Gary Russell
8f90b370bd GH-33: Use Consumer/Producer Constants in Tests
Fixes #33
2016-03-10 14:18:08 -05:00
Gary Russell
30ab3dd6c2 GH-28: Remove ContainerOffsetResetStrategy
Resolves #28

Remove the strategy in favor of using the standard consumer props,
but retain the ability to reset to a recent record.

Resolve rebase conflicts
2016-03-10 13:50:06 -05:00
Artem Bilan
427741529a Provide More Checkstyle Rules and Their Fixes
Polishing

More Polish
2016-03-10 13:16:14 -05:00
Gary Russell
82404f4784 Fix Sonar Violations 2016-03-10 10:39:10 -05:00
Artem Bilan
1d08dac715 GH-3: Fix race condition in the partitions test
Fixes GH-3 (https://github.com/spring-projects/spring-kafka/issues/3)

The default `OffsetResetStrategy` is `LATEST` for the `KafkaConsumer` independently of the `KafkaMessageListenerContainer` option.
Therefore the `Thread.sleep(1000)` might not be enough in the test to wait before publishing messages to the topic.
With the race condition the listener may be initialized in the latest offset bypassing the required messages to poll.

* Add `initialConsumersLatch` to wait until the first `Consumer.poll()` will finish, assuming the offset position has been updated already.
* Remove dangerous `Thread.sleep(1000)`
* Add `assert` for the `latch2` from the second listener to be sure that everything works as expected.
2016-03-09 14:29:46 -05:00
Gary Russell
a6a71a44f5 GH-24: Enable > 1 Partitions in @TopicPartition
Resolves #24

Polishing
2016-03-09 13:58:43 -05:00
Gary Russell
3efd7d4f2d GH-4: Fix Tangles
Resolves #4
Resolves #5

Move ContainerOffsetResetStrategy

Move Ack

Move Endpoints to config

Move Registrar Etc to config

* Fix JavaDocs warnings
2016-03-08 16:37:13 -05:00
Gary Russell
47f1de132c GH-10: Add Sync Template Methods
Resolves: #10

Polishing - PR Comments

Move utilities that don't depend on the container to s-k-test.

Document the test jar.

Polishing Docs.
2016-03-08 12:31:39 -05:00
Artem Bilan
c7ad532fb2 GH-13: Add checkstype and fix as much as possible
Fixes GH-13 (https://github.com/spring-projects/spring-kafka/issues/13)

Also upgrade to Gradle 2.11 to support the latest `checkstyle`
2016-03-08 10:15:40 -05:00
Artem Bilan
f4e6f22ad6 GH-17: Add Travis
Fixes GH-17 (https://github.com/spring-projects/spring-kafka/issues/17)

Also add `reference` to build lifecycle
Other `build.gradle` polishing

Fix AMQP mentioning in the Reference Manual
2016-03-08 09:14:27 -05:00
Gary Russell
e0914c5e98 Polishing
Resolves #6
Resolves #7

The further polishing: new line after author list
2016-03-07 17:22:22 -05:00
Gary Russell
df4a3a621a Fix MANUAL_IMMEDIATE
Resolves #12

Execute the commit immediately, after asserting the callback is invoked on the consumer
thread.

Restructure consumer as an inner class.

Remove manualOffsets Entries

Resolves #11

* Polishing according PR comments
* Polish code style
* Move `ack.acknowledge()` to the listener code since `MANUAL_IMMEDIATE` can be performed only from the consumer's Thread
2016-03-07 17:09:44 -05:00
Gary Russell
c8b723fa07 GH-8: Shared KafkaProducer
Resolves: #8

Polishing - PR Comments
2016-03-07 16:52:25 -05:00
Artem Bilan
fd3fd3e8dd GH-1: Add Contribution Guidelines
Fixes GH-1 (https://github.com/spring-projects/spring-kafka/issues/1)

* add `CONTRIBUTING.adoc` describing the Contribution procedure
* mention Contribution Guidelines in the `README.md`
* mention CODE_OF_CONDUCT in the `README.md`
2016-03-02 13:31:48 -05:00
Gary Russell
c0fe2c2fb8 spring-kafka - 0.9 Clients, @KafkaListener
from container factory to container.

Propagate Remaining Container Properties

More @KafkaListener Tests

Use the other options to select topics

KafkaTemplate Javadocs; Polishing

Reference Manual - Initial Commit

@KafkaListener Tests Improvements

Polishing for the top-level repo
2016-03-02 12:46:42 -05:00