本文整理了Java中org.zeromq.ZMQ.makeVersion()
方法的一些代码示例,展示了ZMQ.makeVersion()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZMQ.makeVersion()
方法的具体详情如下:
包路径:org.zeromq.ZMQ
类名称:ZMQ
方法名:makeVersion
暂无
代码示例来源:origin: zeromq/jzmq
public void setGSSAPIServer(boolean isServer) {
if(ZMQ.version_full() >= ZMQ.makeVersion(4, 1, 0)) {
setLongSockopt(GSSAPI_SERVER, isServer ? 1L : 0L);
}
}
代码示例来源:origin: zeromq/jzmq
public void setGSSAPIPlainText(boolean isPlaintext) {
if(ZMQ.version_full() >= ZMQ.makeVersion(4, 1, 0)) {
setLongSockopt(GSSAPI_PLAINTEXT, isPlaintext ? 1L : 0L);
}
}
代码示例来源:origin: org.zeromq/zeromq-scala-binding_2.10
public int getType() {
if (getFullVersion() < makeVersion(2, 1, 0))
return -1;
return (int) getLongSockopt(ZeroMQ$.MODULE$.ZMQ_TYPE());
}
代码示例来源:origin: org.zeromq/zeromq-scala-binding_2.10
public void setLinger(long linger) {
if (getFullVersion() < makeVersion(2, 1, 0))
return;
setLongSockopt(ZeroMQ$.MODULE$.ZMQ_LINGER(), linger);
}
代码示例来源:origin: org.zeromq/zeromq-scala-binding_2.10
public void setMulticastLoop(boolean mcast_loop) {
if (getFullVersion() >= makeVersion(3, 0, 0))
return;
setLongSockopt(ZeroMQ$.MODULE$.ZMQ_MCAST_LOOP(), mcast_loop ? 1 : 0);
}
代码示例来源:origin: org.zeromq/zeromq-scala-binding
public int getReconnectIVLMax() {
if (getFullVersion() < makeVersion(2, 1, 0))
return -1;
return getIntSockopt(ZeroMQ$.MODULE$.ZMQ_RECONNECT_IVL_MAX());
}
代码示例来源:origin: org.zeromq/zeromq-scala-binding
public long getMaxMsgSize() {
if (getFullVersion() < makeVersion(3, 0, 0))
return -1;
return getLongSockopt(ZeroMQ$.MODULE$.ZMQ_MAXMSGSIZE());
}
代码示例来源:origin: org.zeromq/zeromq-scala-binding
public int getSendTimeOut() {
if (getFullVersion() < makeVersion(2, 2, 0))
return -1;
return getIntSockopt(ZeroMQ$.MODULE$.ZMQ_SNDTIMEO());
}
代码示例来源:origin: org.zeromq/zeromq-scala-binding
public long getFD() {
if (getFullVersion() < makeVersion(2, 1, 0))
return -1;
return getLongSockopt(ZeroMQ$.MODULE$.ZMQ_FD());
}
代码示例来源:origin: org.zeromq/zeromq-scala-binding
public void setReconnectIVLMax(int reconnectIVLMax) {
if (getFullVersion() < makeVersion(2, 1, 0))
return;
setIntSockopt(ZeroMQ$.MODULE$.ZMQ_RECONNECT_IVL_MAX(), reconnectIVLMax);
}
代码示例来源:origin: org.zeromq/zeromq-scala-binding
public void setMulticastLoop(boolean mcast_loop) {
if (getFullVersion() >= makeVersion(3, 0, 0))
return;
setLongSockopt(ZeroMQ$.MODULE$.ZMQ_MCAST_LOOP(), mcast_loop ? 1 : 0);
}
代码示例来源:origin: org.spark-project.zeromq/zeromq-scala-binding
public int getType() {
if (getFullVersion() < makeVersion(2, 1, 0))
return -1;
return (int) getLongSockopt(ZeroMQ$.MODULE$.ZMQ_TYPE());
}
代码示例来源:origin: org.spark-project.zeromq/zeromq-scala-binding
public long getSendTimeOut() {
if (getFullVersion() < makeVersion(3, 0, 0))
return -1;
return getLongSockopt(ZeroMQ$.MODULE$.ZMQ_SNDTIMEO());
}
代码示例来源:origin: org.spark-project.zeromq/zeromq-scala-binding
public void setHWM(long hwm) {
if (getFullVersion() >= makeVersion(3, 0, 0))
return;
setLongSockopt(ZeroMQ$.MODULE$.ZMQ_HWM(), hwm);
}
代码示例来源:origin: org.spark-project.zeromq/zeromq-scala-binding
public void setMulticastLoop(boolean mcast_loop) {
if (getFullVersion() >= makeVersion(3, 0, 0))
return;
setLongSockopt(ZeroMQ$.MODULE$.ZMQ_MCAST_LOOP(), mcast_loop ? 1 : 0);
}
代码示例来源:origin: org.spark-project.zeromq/zeromq-scala-binding_2.10
public long getSndHWM() {
if (getFullVersion() < makeVersion(3, 0, 0))
return -1;
return getLongSockopt(ZeroMQ$.MODULE$.ZMQ_SNDHWM());
}
代码示例来源:origin: org.spark-project.zeromq/zeromq-scala-binding_2.10
public void setSendTimeOut(long timeout) {
if (getFullVersion() < makeVersion(3, 0, 0))
return;
setLongSockopt(ZeroMQ$.MODULE$.ZMQ_SNDTIMEO(), timeout);
}
代码示例来源:origin: org.spark-project.zeromq/zeromq-scala-binding_2.10
public long getEvents() {
if (getFullVersion() < makeVersion(2, 1, 0))
return -1;
return getLongSockopt(ZeroMQ$.MODULE$.ZMQ_EVENTS());
}
代码示例来源:origin: org.spark-project.zeromq/zeromq-scala-binding_2.10
public void setReconnectIVLMax(long reconnectIVLMax) {
if (getFullVersion() < makeVersion(3, 0, 0))
return;
setLongSockopt(ZeroMQ$.MODULE$.ZMQ_RECONNECT_IVL_MAX(), reconnectIVLMax);
}
代码示例来源:origin: org.spark-project.zeromq/zeromq-scala-binding_2.10
public void setHWM(long hwm) {
if (getFullVersion() >= makeVersion(3, 0, 0))
return;
setLongSockopt(ZeroMQ$.MODULE$.ZMQ_HWM(), hwm);
}
内容来源于网络,如有侵权,请联系作者删除!