org.zeromq
Class ZMQ.Context

java.lang.Object
  extended by org.zeromq.ZMQ.Context
Enclosing class:
ZMQ

public static class ZMQ.Context
extends Object

Inner class: Context.


Constructor Summary
protected ZMQ.Context(int ioThreads)
          Class constructor.
 
Method Summary
protected  void construct(int ioThreads)
          Initialize the JNI interface
protected  void finalize()
          Free all resources used by JNI interface.
 ZMQ.Poller poller()
          Deprecated. use Poller constructor
 ZMQ.Poller poller(int size)
          Deprecated. use Poller constructor
 ZMQ.Socket socket(int type)
          Create a new Socket within this context.
 void term()
          This is an explicit "destructor".
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZMQ.Context

protected ZMQ.Context(int ioThreads)
Class constructor.

Parameters:
ioThreads - size of the threads pool to handle I/O operations.
Method Detail

term

public void term()
This is an explicit "destructor". It can be called to ensure the corresponding 0MQ Context has been disposed of.


socket

public ZMQ.Socket socket(int type)
Create a new Socket within this context.

Parameters:
type - the socket type.
Returns:
the newly created Socket.

poller

public ZMQ.Poller poller()
Deprecated. use Poller constructor

Create a new Poller within this context, with a default size.

Returns:
the newly created Poller.

poller

public ZMQ.Poller poller(int size)
Deprecated. use Poller constructor

Create a new Poller within this context, with a specified initial size.

Parameters:
size - the poller initial size.
Returns:
the newly created Poller.

construct

protected void construct(int ioThreads)
Initialize the JNI interface


finalize

protected void finalize()
Free all resources used by JNI interface.

Overrides:
finalize in class Object


Copyright © 2013. All Rights Reserved.