File tree Expand file tree Collapse file tree 5 files changed +15
-10
lines changed Expand file tree Collapse file tree 5 files changed +15
-10
lines changed Original file line number Diff line number Diff line change
1
+ ## 7.0.3
2
+ - Refactor: scope (and remove unused) java imports [ #29 ] ( https://github.com/logstash-plugins/logstash-integration-rabbitmq/pull/29 )
3
+
1
4
## 7.0.2
2
5
- Fixes issue in Output where failure to register connection reovery hooks prevented the output from starting
3
6
Original file line number Diff line number Diff line change 2
2
require_relative '../plugin_mixins/rabbitmq_connection'
3
3
require 'logstash/inputs/threadable'
4
4
require 'logstash/event'
5
- java_import java . util . concurrent . ArrayBlockingQueue
6
- java_import java . util . concurrent . TimeUnit
7
5
8
6
module LogStash
9
7
module Inputs
@@ -59,6 +57,9 @@ module Inputs
59
57
# Additionally, any message headers will be saved in the
60
58
# `[@metadata][rabbitmq_headers]` field.
61
59
class RabbitMQ < LogStash ::Inputs ::Threadable
60
+
61
+ java_import java . util . concurrent . TimeUnit
62
+
62
63
include ::LogStash ::PluginMixins ::RabbitMQConnection
63
64
64
65
# The properties to extract from each message and store in a
Original file line number Diff line number Diff line change 1
1
# encoding: UTF-8
2
2
require "logstash/pipeline"
3
3
require_relative '../plugin_mixins/rabbitmq_connection'
4
- java_import java . util . concurrent . TimeoutException
5
- java_import com . rabbitmq . client . AlreadyClosedException
6
4
7
5
require 'back_pressure'
8
6
9
7
# Push events to a RabbitMQ exchange. Requires RabbitMQ 2.x
10
8
# or later version (3.x is recommended).
11
- #
9
+ #
12
10
# Relevant links:
13
11
#
14
12
# * http://www.rabbitmq.com/[RabbitMQ]
15
13
# * http://rubymarchhare.info[March Hare]
16
14
module LogStash
17
15
module Outputs
18
16
class RabbitMQ < LogStash ::Outputs ::Base
17
+
18
+ java_import java . util . concurrent . TimeoutException
19
+ java_import com . rabbitmq . client . AlreadyClosedException
20
+
19
21
include LogStash ::PluginMixins ::RabbitMQConnection
20
22
21
23
config_name "rabbitmq"
22
-
24
+
23
25
concurrency :shared
24
26
25
27
# The default codec for this plugin is JSON. You can override this to suit your particular needs however.
@@ -128,4 +130,4 @@ def back_pressure_provider_for_connection(march_hare_connection)
128
130
end
129
131
end
130
132
end
131
- end
133
+ end
Original file line number Diff line number Diff line change 1
1
Gem ::Specification . new do |s |
2
2
s . name = 'logstash-integration-rabbitmq'
3
- s . version = '7.0.2 '
3
+ s . version = '7.0.3 '
4
4
s . licenses = [ 'Apache License (2.0)' ]
5
5
s . summary = "Integration with RabbitMQ - input and output plugins"
6
6
s . description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline " +
Original file line number Diff line number Diff line change 2
2
require "logstash/devutils/rspec/spec_helper"
3
3
require "logstash/pipeline"
4
4
require "logstash/outputs/rabbitmq"
5
- java_import java . util . concurrent . TimeoutException
6
5
7
6
describe LogStash ::Outputs ::RabbitMQ do
8
7
let ( :klass ) { LogStash ::Outputs ::RabbitMQ }
124
123
end
125
124
126
125
context 'when it is a TimeoutException' do
127
- let ( :exception ) { TimeoutException . new }
126
+ let ( :exception ) { java . util . concurrent . TimeoutException . new }
128
127
it_behaves_like 'recovers from exception gracefully'
129
128
end
130
129
end
You can’t perform that action at this time.
0 commit comments