本文整理了Java中org.jgroups.util.Util.writeObject()
方法的一些代码示例,展示了Util.writeObject()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.writeObject()
方法的具体详情如下:
包路径:org.jgroups.util.Util
类名称:Util
方法名:writeObject
暂无
代码示例来源:origin: wildfly/wildfly
@Override
public void writeTo(DataOutput out) throws Exception {
try {
Util.writeObject(task, out);
}
catch (IOException e) {
throw e;
}
catch (Exception e) {
throw new IOException("Exception encountered while writing execution runnable", e);
}
try {
Util.writeObject(result, out);
}
catch (IOException e) {
throw e;
}
catch (Exception e) {
throw new IOException("Exception encountered while writing execution result", e);
}
}
@SuppressWarnings("unchecked")
代码示例来源:origin: wildfly/wildfly
@Override
public void writeTo(DataOutput out) throws Exception {
out.writeUTF(_classCallable.getName());
out.writeByte(_constructorNumber);
out.writeByte(_args.length);
for (Object arg : _args) {
try {
Util.writeObject(arg, out);
}
catch (Exception e) {
throw new IOException("failed to write arg " + arg);
}
}
}
代码示例来源:origin: io.vertx/vertx-jgroups
@Override
public void writeTo(DataOutput out) throws Exception {
out.writeInt(values.size());
for (T value : values) {
Util.writeObject(value, out);
}
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
@Override
public void writeTo(DataOutput out) throws Exception {
try {
Util.writeObject(task, out);
}
catch (IOException e) {
throw e;
}
catch (Exception e) {
throw new IOException("Exception encountered while writing execution runnable", e);
}
try {
Util.writeObject(result, out);
}
catch (IOException e) {
throw e;
}
catch (Exception e) {
throw new IOException("Exception encountered while writing execution result", e);
}
}
@SuppressWarnings("unchecked")
代码示例来源:origin: org.jboss.eap/wildfly-client-all
@Override
public void writeTo(DataOutput out) throws Exception {
out.writeUTF(_classCallable.getName());
out.writeByte(_constructorNumber);
out.writeByte(_args.length);
for (Object arg : _args) {
try {
Util.writeObject(arg, out);
}
catch (Exception e) {
throw new IOException("failed to write arg " + arg);
}
}
}
代码示例来源:origin: Jasig/uPortal
@Override
public void writeTo(DataOutput out) throws Exception {
if (log.isDebugEnabled()) {
log.debug("HashedDaoAuthToken writeTo()");
}
Util.writeObject(this.getAuthValue(), out);
}
代码示例来源:origin: org.jasig.portal/uPortal-utils-core
@Override
public void writeTo(DataOutput out) throws Exception {
if (log.isDebugEnabled()) {
log.debug("HashedDaoAuthToken writeTo()");
}
Util.writeObject(this.getAuthValue(), out);
}
内容来源于网络,如有侵权,请联系作者删除!