Class: Protobuf::Rpc::Socket::Connection

Inherits:
Object
  • Object
show all
Includes:
Celluloid, Logging
Defined in:
lib/protobuf/rpc/socket/connection.rb

Instance Method Summary collapse

Constructor Details

#initializeConnection

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 { sign_message("Initializing Connection[#{Thread.current}]") }
end

Instance Method Details

#stopObject



20
21
22
# File 'lib/protobuf/rpc/socket/connection.rb', line 20

def stop
  logger.debug { sign_message("Stopping Connection[#{Thread.current}]") }
end