jruby-kafka 4.0.0.ci.1.g0cd872b-java → 4.0.0-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjY4NGNmNDI0YTA4MzBiMWM5MmNlY2ExYzE3NmFlOWYzMDMxYzU1MA==
4
+ NTg4NDUwZGJjMDQyNGNjOWE2NTVkYThmMTA4NDAxZjUwMzUyNTJlMw==
5
5
  data.tar.gz: !binary |-
6
- OThmZWYzMzc3ODkwNmJmZGFiNTc3ZTQ3MjY4ZmYyNmM0MmRiYjliZQ==
6
+ MzI0NjI2MTM5MDg2ZDM1MWVlOTY0NzkxNGMzODQ5N2E5MTgxNzExOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzllMjBiY2ExNThiMmUzYzg2MTI4YmI0NmFjZTVhY2M3NTcxNTQ5ZmQ5MmFl
10
- MjMyZGZhMjg0MTdjNWI5ZDFmMzkzODQ1MDBmMzgyZDRkNjk4MjMwMTVkMTZl
11
- ZGNjZjRmYjNjNGQ2NWVhY2U0NGQzZWVmNjk5ZGVhNmY3MzRkNmQ=
9
+ ODEyYzI0OTkxN2IwYmM1NWE0Mzk0NDliNjFkNzViYjMwMjIxZGI5ODQzZDcy
10
+ MjJkZDczYzM1MmI0NGY0ZmNkNmMzOGE0YzE5YzY4ZjkyOGVhNWQ5NDFjZGE1
11
+ NmRmODljMDkzMWUyMzg4NGY4ZjUxM2Y3ODZkODdhN2M3ODcxZWY=
12
12
  data.tar.gz: !binary |-
13
- ZTljMjEzYjQzMjA4ZTBhZDM1NWMxMjE2NWRkMGI4ZjgwMjcxYzEzYmUyZWFl
14
- YTEzNjMzNTBjYTFlZjM1M2ZkYjE2ZWZiZDFjNmFiN2VjMzUwZGY3M2RiMzhi
15
- MDFkMTJjNGYxZTZmZjc3NTI5OTA3YTdhNmEwN2ViMmJkYTQ2YzE=
13
+ Mzg2YTgzMmJhZWExMzAzYjA0MTIwOTYwZjE2OWM5MzliZmRkYWM1MmYxZGYx
14
+ MzE2YWUyN2UwZjcwMDc1YzEwOWI3NzA2NDY3NDZmNzM0ZDJjYWViMmQyODc5
15
+ NDVjNWFkYTEyZjJiNTM4NDU1YTk1NDIwMDY3YzIzZThlNmVkMGM=
@@ -40,24 +40,12 @@ class Kafka::KafkaProducer < Java::org.apache.kafka.clients.producer.KafkaProdu
40
40
  java_alias :send_method , :send, [ProducerRecord]
41
41
  java_alias :send_cb_method, :send, [ProducerRecord, Callback.java_class]
42
42
 
43
- # Send a message to the cluster.
44
- #
45
- # @param [String] topic The topic to send the message to.
46
- # @param [Integer,nil] partition The topic partition to send the message to, or nil to allow
47
- # the configured partitioner class to select the partition.
48
- # @param [String,nil] key The message key, if there is one. Otherwise, nil.
49
- # @param [String] value The message value.
50
- # @param [Integer,nil] timestamp The message timestamp in milliseconds. If nil, the
51
- # producer will assign it the current time.
52
- #
53
- # @raise [FailedToSendMessageException] if it can't send the message
54
- def send_msg(topic, partition, key, value, timestamp=nil, &block)
55
- record = ProducerRecord.new(topic, partition, timestamp, key, value)
56
-
43
+ # throws FailedToSendMessageException or if not connected, StandardError.
44
+ def send_msg(topic, partition, key, value, &block)
57
45
  if block
58
- send_cb_method record, RubyCallback.new(block)
46
+ send_cb_method ProducerRecord.new(topic, partition, key, value), RubyCallback.new(block)
59
47
  else
60
- send_method record
48
+ send_method ProducerRecord.new(topic, partition, key, value)
61
49
  end
62
50
  end
63
51
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jruby-kafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.ci.1.g0cd872b
4
+ version: 4.0.0
5
5
  platform: java
6
6
  authors:
7
7
  - Joseph Lawson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-23 00:00:00.000000000 Z
11
+ date: 2016-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -127,9 +127,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  requirements:
130
- - - ! '>'
130
+ - - ! '>='
131
131
  - !ruby/object:Gem::Version
132
- version: 1.3.1
132
+ version: '0'
133
133
  requirements:
134
134
  - jar 'org.apache.kafka:kafka_2.11', '0.10.0.0'
135
135
  - jar 'org.slf4j:slf4j-log4j12', '1.7.13'