Sha256: d41ef57a7eeddf39cb445413d58c8acb23e3804e3ddd6371a2b8f76b67c9f2d5

Contents?: true

Size: 400 Bytes

Versions: 3

Compression:

Stored size: 400 Bytes

Contents

module ModernTimes
  module HornetQ
    module MarshalStrategy
      module Ruby
        def marshal(session, object, durable)
          message = session.create_message(::HornetQ::Client::Message::BYTES_TYPE, durable)
          message.body = ::Marshal.dump(object)
          message
        end

        def unmarshal(msg)
          ::Marshal.load(msg.body)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
modern_times-0.1.2 lib/modern_times/hornetq/marshal_strategy/ruby.rb
modern_times-0.1.1 lib/modern_times/hornetq/marshal_strategy/ruby.rb
modern_times-0.1.0 lib/modern_times/hornetq/marshal_strategy/ruby.rb