Sha256: c171317362768b0df169db334a3904a27f5f65ce4d0422bca2cf6baa435ceb3b

Contents?: true

Size: 297 Bytes

Versions: 40

Compression:

Stored size: 297 Bytes

Contents

module MarchHare
  class ShutdownListener
    include com.rabbitmq.client.ShutdownListener

    def initialize(entity, &block)
      # connection or channel
      @entity = entity
      @block  = block
    end

    def shutdown_completed(cause)
      @block.call(@entity, cause)
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
march_hare-4.6.0-java lib/march_hare/shutdown_listener.rb
march_hare-4.5.0-java lib/march_hare/shutdown_listener.rb
march_hare-4.4.0-java lib/march_hare/shutdown_listener.rb
march_hare-4.3.0-java lib/march_hare/shutdown_listener.rb
march_hare-4.2.0-java lib/march_hare/shutdown_listener.rb
march_hare-4.1.1-java lib/march_hare/shutdown_listener.rb
march_hare-4.1.0-java lib/march_hare/shutdown_listener.rb
march_hare-4.0.0-java lib/march_hare/shutdown_listener.rb
march_hare-3.1.1-java lib/march_hare/shutdown_listener.rb
march_hare-3.1.0-java lib/march_hare/shutdown_listener.rb
march_hare-3.0.0-java lib/march_hare/shutdown_listener.rb
march_hare-2.22.0-java lib/march_hare/shutdown_listener.rb
march_hare-2.21.0-java lib/march_hare/shutdown_listener.rb
march_hare-2.20.0-java lib/march_hare/shutdown_listener.rb
march_hare-2.19.0-java lib/march_hare/shutdown_listener.rb
march_hare-2.18.0-java lib/march_hare/shutdown_listener.rb
march_hare-2.17.0-java lib/march_hare/shutdown_listener.rb
march_hare-2.16.0-java lib/march_hare/shutdown_listener.rb
march_hare-2.15.0-java lib/march_hare/shutdown_listener.rb
march_hare-2.13.0-java lib/march_hare/shutdown_listener.rb