Skip to content

Commit

Permalink
Change ACK strategy to client-individual
Browse files Browse the repository at this point in the history
  • Loading branch information
julianghionoiu committed Jul 31, 2016
1 parent 8f5d277 commit 5e37dcd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/tdl/abstractions/response/valid_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module TDL
class ValidResponse
attr_reader :result, :id, :client_action
attr_reader :id, :result, :client_action

def initialize(id, result, client_action)
@id = id
Expand Down
1 change: 1 addition & 0 deletions lib/tdl/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
require 'tdl/actions/stop_action'

require 'tdl/serialization/json_rpc_serialization_provider'

module TDL

class Client
Expand Down
2 changes: 1 addition & 1 deletion lib/tdl/transport/remote_broker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def initialize(hostname, port, unique_id)
end

def subscribe(handling_strategy)
@stomp_client.subscribe("/queue/#{@unique_id}.req", {:ack => 'client', 'activemq.prefetchSize' => 1}) do |msg|
@stomp_client.subscribe("/queue/#{@unique_id}.req", {:ack => 'client-individual', 'activemq.prefetchSize' => 1}) do |msg|
request = @serialization_provider.deserialize(msg)
handling_strategy.process_next_request_from(self, request)
end
Expand Down
11 changes: 6 additions & 5 deletions tdl-client-ruby.iml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
<module type="RUBY_MODULE" version="4">
<component name="FacetManager">
<facet type="gem" name="Ruby Gem">
<configuration>
<option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
<option name="GEM_APP_TEST_PATH" value="$MODULE_DIR$/test" />
<option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
</configuration>
<configuration />
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="true">
Expand All @@ -15,6 +11,7 @@
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/lib" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/features" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/broker" />
<excludeFolder url="file://$MODULE_DIR$/broker/.cache" />
<excludeFolder url="file://$MODULE_DIR$/coverage" />
</content>
Expand Down Expand Up @@ -53,4 +50,8 @@
<orderEntry type="library" scope="PROVIDED" name="unf (v0.1.4, rbenv: 2.2.2) [gem]" level="application" />
<orderEntry type="library" scope="PROVIDED" name="unf_ext (v0.0.7.1, rbenv: 2.2.2) [gem]" level="application" />
</component>
<component name="RModuleSettingsStorage">
<LOAD_PATH number="1" string0="$MODULE_DIR$/../../tdl-warmup/ruby/lib" />
<I18N_FOLDERS number="0" />
</component>
</module>

0 comments on commit 5e37dcd

Please sign in to comment.