Class: Protobuf::Rpc::Socket::Connection
- Inherits:
-
Object
- Object
- Protobuf::Rpc::Socket::Connection
- Includes:
- Celluloid, Logging
- Defined in:
- lib/protobuf/rpc/socket/connection.rb
Instance Method Summary collapse
-
#initialize ⇒ Connection
constructor
A new instance of Connection.
- #stop ⇒ Object
Constructor Details
#initialize ⇒ Connection
Returns a new instance of Connection.
15 16 17 18 |
# File 'lib/protobuf/rpc/socket/connection.rb', line 15 def initialize @worker = Worker.new(&:close) logger.debug { ("Initializing Connection[#{Thread.current}]") } end |
Instance Method Details
#stop ⇒ Object
20 21 22 |
# File 'lib/protobuf/rpc/socket/connection.rb', line 20 def stop logger.debug { ("Stopping Connection[#{Thread.current}]") } end |