org.zeromq.jzmq
Class ManagedContext

java.lang.Object
  extended by org.zeromq.jzmq.ManagedContext
All Implemented Interfaces:
Closeable, Context

public class ManagedContext
extends Object
implements Context, Closeable

Manage JZMQ Context


Constructor Summary
ManagedContext(int ioThreads)
           
ManagedContext(org.zeromq.ZMQ.Context context)
           
 
Method Summary
 void close()
           
 SocketBuilder createSocket(SocketType type)
           
 void destroySocket(Socket socket)
           
 Collection<Socket> getSockets()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedContext

public ManagedContext(int ioThreads)

ManagedContext

public ManagedContext(org.zeromq.ZMQ.Context context)
Method Detail

getSockets

public Collection<Socket> getSockets()

destroySocket

public void destroySocket(Socket socket)

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException

createSocket

public SocketBuilder createSocket(SocketType type)
Specified by:
createSocket in interface Context


Copyright © 2013. All Rights Reserved.