Class: ZMQ::Context

Inherits:
orgorg.jeromqorg.jeromq.ZMQorg.jeromq.ZMQ::Context
  • Object
show all
Defined in:
lib/jrzmq/zmq_classes.rb

Instance Method Summary collapse

Constructor Details

#initialize(ioThreads = java.lang.Runtime.getRuntime.availableProcessors) ⇒ Context

Returns a new instance of Context.



28
29
30
# File 'lib/jrzmq/zmq_classes.rb', line 28

def initialize(ioThreads=java.lang.Runtime.getRuntime.availableProcessors)
  super(ioThreads)
end

Instance Method Details

#socket(type) ⇒ Object



32
33
34
# File 'lib/jrzmq/zmq_classes.rb', line 32

def socket(type)
  Socket.new(self, type)
end