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.



14
15
16
17
# File 'lib/protobuf/rpc/socket/connection.rb', line 14

def initialize
  @worker = Worker.new(&:close)
  logger.debug { sign_message("Initializing Connection[#{Thread.current}]") }
end

Instance Method Details

#stopObject



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

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