kafka-clients-jruby 1.0.0.pre1-java → 1.0.0.pre2-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fbc8d425d6981d0e63e316120b14213858e4654d
4
- data.tar.gz: 738e1f0667c02a508afb613530c365c71b2fcd62
3
+ metadata.gz: 124dcc059981bf452b89a8ddcf40c94f74ecd5c3
4
+ data.tar.gz: 23391caaa17793696b98d67691f3ba32560e4d56
5
5
  SHA512:
6
- metadata.gz: c41bc40d8bfb2ab934eac8785c07a1c7c8566776a3c9cc32345d2a76d3635a544b8e9ec4a6cb7daf9f7013fa0fd845532fda1c0d355a3c55361a5f0675edb869
7
- data.tar.gz: 6b81ed7cf1f7aa227159367937a45c4863624b7ea0a67332ef2f4ecd5fe70a05413cecbe4cde82701db6a0f4df5a60a64484feb0e2b256b80d0339d2b207ff03
6
+ metadata.gz: 5561d6019c41504f6acaf904bf40c29494554be108abdadead7a11c899425541f4748ee5b68ab9fc8c7f198386f93cf251830eb840a1d94c31cbacb8e94e179e
7
+ data.tar.gz: 77a4dc0fa1accaac116acc4266304f981f8ccfcc81317135580aded3912dc3428ea5c5f5aea056807342c8c35fab1790fc576ff99facbaf9623f3197fb9b2ba6
@@ -2,7 +2,39 @@ module Kafka
2
2
  module Clients
3
3
  class Consumer
4
4
  # @!method initialize(configuration)
5
- # @param configuration [Hash]
5
+ # @param configuration [Hash] A set of key-value pairs to use as
6
+ # configuration for the consumer. Common config parameters have symbol
7
+ # aliases for convenience (see below), but the native string properties
8
+ # can also be used.
9
+ # @option configuration [String, Array<String>] :bootstrap_servers
10
+ # Alias for `bootstrap.servers`, but in addition to a comma separated
11
+ # list of servers it accepts an array.
12
+ # @option configuration [String] :group_id Alias for `group.id`
13
+ # @option configuration [String] :client_id Alias for `client.id`
14
+ # @option configuration [Integer] :max_poll_records Alias for `max.poll.records`
15
+ # @option configuration [true, false] :auto_commit alias for `enable.auto.commit`
16
+ # @option configuration [Integer] :auto_commit_interval Alias for `auto.commit.interval.ms`,
17
+ # but in seconds, _not milliseconds_
18
+ # @option configuration [true, false] :auto_offset_reset Alias for `auto.offset.reset`
19
+ # @option configuration [Float] :request_timeout Alias for `request.timeout.ms`,
20
+ # but in seconds, _not milliseconds_
21
+ # @option configuration [#deserialize] :key_deserializer An object that
22
+ # will receive `#deserialize` with the string serialization of the key
23
+ # and that will return the deserialized version of that key. The input
24
+ # to the deserializer is affected by the `:encoding` configuration.
25
+ # The default deserializer interprets the key as a string.
26
+ # @option configuration [#deserialize] :value_deserializer An object that
27
+ # will receive `#deserialize` with the string serialization of the value
28
+ # and that will return the deserialized version of that value. The input
29
+ # to the deserializer is affected by the `:encoding` configuration.
30
+ # The default deserializer returns strings.
31
+ # The default deserializer interprets the value as a string.
32
+ # @option configuration [Encoding] :encoding The encoding to use for
33
+ # deserialized keys and values (default to `Encoding.default_external`).
34
+ # This encoding is applied (using something like `#force_encoding`) to
35
+ # strings before any custom deserialization happens, so if you're
36
+ # setting `:key_deserializer` and/or `:value_deserializer` you might
37
+ # want to set this configuration too.
6
38
  # @return [self]
7
39
 
8
40
  # @!method close
@@ -2,7 +2,35 @@ module Kafka
2
2
  module Clients
3
3
  class Producer
4
4
  # @!method initialize(configuration)
5
- # @param configuration [Hash]
5
+ # @param configuration [Hash] A set of key-value pairs to use as
6
+ # configuration for the producer. Common config parameters have symbol
7
+ # aliases for convenience (see below), but the native string properties
8
+ # can also be used.
9
+ # @option configuration [String, Array<String>] :bootstrap_servers
10
+ # Alias for `bootstrap.servers`, but in addition to a comma separated
11
+ # list of servers it accepts an array.
12
+ # @option configuration [String] :acks Alias for `acks`
13
+ # @option configuration [String] :compression_type Alias for `compression.type`
14
+ # @option configuration [Integer] :retries Alias for `retries`
15
+ # @option configuration [Integer] :batch_size Alias for `batch.size`
16
+ # @option configuration [String] :client_id Alias for `client.id`
17
+ # @option configuration [Float] :linger Alias for `linger.ms`,
18
+ # but in seconds, _not milliseconds_
19
+ # @option configuration [Float] :max_block Alias for `max.block.ms`,
20
+ # but in seconds, _not milliseconds_
21
+ # @option configuration [Integer] :max_request_size Alias for `max.request.size`
22
+ # @option configuration [Float] :request_timeout Alias for `request.timeout.ms`,
23
+ # but in seconds, _not milliseconds_
24
+ # @option configuration [#partition] :partitioner An object that will
25
+ # receive `#partition` with the topic name, partition, key, value and
26
+ # cluster metadata and that will return the partition that the record
27
+ # should be sent to
28
+ # @option configuration [#serialize] :key_serializer An object that
29
+ # will receive `#serialize` with the key and that will return the
30
+ # string serialization of that key
31
+ # @option configuration [#deserialize] :value_serializer An object that
32
+ # will receive `#serialize` with the value and that will return the
33
+ # string serialization of that value
6
34
  # @return [self]
7
35
 
8
36
  # @!method close(options=nil)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Kafka
4
4
  module Clients
5
- VERSION = '1.0.0.pre1'
5
+ VERSION = '1.0.0.pre2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kafka-clients-jruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre1
4
+ version: 1.0.0.pre2
5
5
  platform: java
6
6
  authors:
7
7
  - Theo Hultberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-09 00:00:00.000000000 Z
11
+ date: 2016-10-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Native JRuby wrappers of the Kafka producer and consumer clients
14
14
  email: theo@burtcorp.com