本文整理了Java中org.jgroups.Message.flagsToString()
方法的一些代码示例,展示了Message.flagsToString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.flagsToString()
方法的具体详情如下:
包路径:org.jgroups.Message
类名称:Message
方法名:flagsToString
暂无
代码示例来源:origin: wildfly/wildfly
public String toString() {
StringBuilder sb=new StringBuilder();
sb.append("mode=" + mode).append(", timeout=" + timeout);
if(use_anycasting) {
sb.append(", anycasting=true");
if(use_anycast_addresses)
sb.append(" (using AnycastAddress)");
}
if(flags > 0)
sb.append(", flags=" + Message.flagsToString(flags));
if(transient_flags > 0)
sb.append(", transient_flags=" + Message.transientFlagsToString(transient_flags));
if(exclusion_list != null)
sb.append(", exclusion list: " + Arrays.toString(exclusion_list));
return sb.toString();
}
代码示例来源:origin: wildfly/wildfly
public String toString() {
StringBuilder ret=new StringBuilder(64);
ret.append("[dst: ");
if(dest_addr == null)
ret.append("<null>");
else
ret.append(dest_addr);
ret.append(", src: ");
if(src_addr == null)
ret.append("<null>");
else
ret.append(src_addr);
int size;
if((size=getNumHeaders()) > 0)
ret.append(" (").append(size).append(" headers)");
ret.append(", size=");
if(buf != null && length > 0)
ret.append(length);
else
ret.append('0');
ret.append(" bytes");
if(flags > 0)
ret.append(", flags=").append(flagsToString(flags));
if(transient_flags > 0)
ret.append(", transient_flags=" + transientFlagsToString(transient_flags));
ret.append(']');
return ret.toString();
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
public String toString() {
StringBuilder sb=new StringBuilder();
sb.append("mode=" + mode).append(", timeout=" + timeout);
if(use_anycasting) {
sb.append(", anycasting=true");
if(use_anycast_addresses)
sb.append(" (using AnycastAddress)");
}
if(flags > 0)
sb.append(", flags=" + Message.flagsToString(flags));
if(transient_flags > 0)
sb.append(", transient_flags=" + Message.transientFlagsToString(transient_flags));
if(exclusion_list != null)
sb.append(", exclusion list: " + Arrays.toString(exclusion_list));
return sb.toString();
}
代码示例来源:origin: org.jgroups/com.springsource.org.jgroups
public String toString() {
StringBuilder ret=new StringBuilder(64);
ret.append("[dst: ");
if(dest_addr == null)
ret.append("<null>");
else
ret.append(dest_addr);
ret.append(", src: ");
if(src_addr == null)
ret.append("<null>");
else
ret.append(src_addr);
int size;
if((size=getNumHeaders()) > 0)
ret.append(" (").append(size).append(" headers)");
ret.append(", size=");
if(buf != null && length > 0)
ret.append(length);
else
ret.append('0');
ret.append(" bytes");
if(flags > 0)
ret.append(", flags=").append(flagsToString());
ret.append(']');
return ret.toString();
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
public String toString() {
StringBuilder ret=new StringBuilder(64);
ret.append("[dst: ");
if(dest_addr == null)
ret.append("<null>");
else
ret.append(dest_addr);
ret.append(", src: ");
if(src_addr == null)
ret.append("<null>");
else
ret.append(src_addr);
int size;
if((size=getNumHeaders()) > 0)
ret.append(" (").append(size).append(" headers)");
ret.append(", size=");
if(buf != null && length > 0)
ret.append(length);
else
ret.append('0');
ret.append(" bytes");
if(flags > 0)
ret.append(", flags=").append(flagsToString(flags));
if(transient_flags > 0)
ret.append(", transient_flags=" + transientFlagsToString(transient_flags));
ret.append(']');
return ret.toString();
}
内容来源于网络,如有侵权,请联系作者删除!