Refine search
public static Context context(int threads) { try { return ZMQ.context(threads); } catch (UnsatisfiedLinkError e) { LOG.error("context", e); } return null; }
public void setGSSAPIServer(boolean isServer) { if(ZMQ.version_full() >= ZMQ.makeVersion(4, 1, 0)) { setLongSockopt(GSSAPI_SERVER, isServer ? 1L : 0L); } }
public long getBacklog() { if (getFullVersion() < makeVersion(3, 0, 0)) return -1; return (int) getLongSockopt(ZeroMQ$.MODULE$.ZMQ_BACKLOG()); }
public static int getFullVersion() { return makeVersion(getMajorVersion(), getMinorVersion(), getPatchVersion()); }
public static String getVersionString() { return String.format("%d.%d.%d", getMajorVersion(), getMinorVersion(), getPatchVersion()); }
public long getSndHWM() { if (getFullVersion() < makeVersion(3, 0, 0)) return -1; return getLongSockopt(ZeroMQ$.MODULE$.ZMQ_SNDHWM()); }
public static int getFullVersion() { return makeVersion(getMajorVersion(), getMinorVersion(), getPatchVersion()); }
public static String getVersionString() { return String.format("%d.%d.%d", getMajorVersion(), getMinorVersion(), getPatchVersion()); }
public KernelSocketsZMQ(KernelFunctionality kernel, Config configuration, SocketCloseAction closeAction) { this.closeAction = closeAction; this.kernel = kernel; this.hmac = new HashedMessageAuthenticationCode(configuration.getKey()); this.context = ZMQ.context(1); configureSockets(configuration); }
public long getFD() { if (getFullVersion() < makeVersion(2, 1, 0)) return -1; return getLongSockopt(ZeroMQ$.MODULE$.ZMQ_FD()); }
public static int getFullVersion() { return makeVersion(getMajorVersion(), getMinorVersion(), getPatchVersion()); }
public static String getVersionString() { return String.format("%d.%d.%d", getMajorVersion(), getMinorVersion(), getPatchVersion()); }
public void setGSSAPIPlainText(boolean isPlaintext) { if(ZMQ.version_full() >= ZMQ.makeVersion(4, 1, 0)) { setLongSockopt(GSSAPI_PLAINTEXT, isPlaintext ? 1L : 0L); } }
public long getEvents() { if (getFullVersion() < makeVersion(2, 1, 0)) return -1; return getLongSockopt(ZeroMQ$.MODULE$.ZMQ_EVENTS()); }
public static int getFullVersion() { return makeVersion(getMajorVersion(), getMinorVersion(), getPatchVersion()); }
public static String getVersionString() { return String.format("%d.%d.%d", getMajorVersion(), getMinorVersion(), getPatchVersion()); }
public static Context getInstance() { if (context == null) context = ZMQ.context(1); return context; }
public void setReconnectIVL(long reconnectIVL) { if (getFullVersion() < makeVersion(3, 0, 0)) return; setLongSockopt(ZeroMQ$.MODULE$.ZMQ_RECONNECT_IVL(), reconnectIVL); }
public void Start() { context = ZMQ.context(1); thread = new Thread(this); thread.setName("ZeroMQBasedConnector Receive Loop"); thread.start(); }