org.jgroups.util.Util.writeObject()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(178)

本文整理了Java中org.jgroups.util.Util.writeObject()方法的一些代码示例,展示了Util.writeObject()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.writeObject()方法的具体详情如下:
包路径:org.jgroups.util.Util
类名称:Util
方法名:writeObject

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);
}

相关文章

Util类方法