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-2.12.0-java lib/march_hare/shutdown_listener.rb
march_hare-2.11.0-java lib/march_hare/shutdown_listener.rb
march_hare-2.10.0-java lib/march_hare/shutdown_listener.rb
march_hare-2.9.0-java lib/march_hare/shutdown_listener.rb
march_hare-2.8.0-java lib/march_hare/shutdown_listener.rb
march_hare-2.7.0-java lib/march_hare/shutdown_listener.rb
march_hare-2.5.1-java lib/march_hare/shutdown_listener.rb
march_hare-2.5.0-java lib/march_hare/shutdown_listener.rb
march_hare-2.4.0-java lib/march_hare/shutdown_listener.rb
march_hare-2.3.0-java lib/march_hare/shutdown_listener.rb
march_hare-2.2.0-java lib/march_hare/shutdown_listener.rb
march_hare-2.1.2-java lib/march_hare/shutdown_listener.rb
march_hare-2.1.1-java lib/march_hare/shutdown_listener.rb
march_hare-2.1.0-java lib/march_hare/shutdown_listener.rb
march_hare-2.0.0-java lib/march_hare/shutdown_listener.rb
march_hare-2.0.0.rc5-java lib/march_hare/shutdown_listener.rb
march_hare-2.0.0.rc4-java lib/march_hare/shutdown_listener.rb
march_hare-2.0.0.rc3-java lib/march_hare/shutdown_listener.rb
march_hare-2.0.0.rc2-java lib/march_hare/shutdown_listener.rb
march_hare-2.0.0.rc1-java lib/march_hare/shutdown_listener.rb