org.zeromq.jzmq
Class ManagedContext
java.lang.Object
org.zeromq.jzmq.ManagedContext
- All Implemented Interfaces:
- Closeable, Context
public class ManagedContext
- extends Object
- implements Context, Closeable
Manage JZMQ Context
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ManagedContext
public ManagedContext(int ioThreads)
ManagedContext
public ManagedContext(org.zeromq.ZMQ.Context context)
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.