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

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

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

Util.writeObject介绍

暂无

代码示例

代码示例来源:origin: wildfly/wildfly

  1. @Override
  2. public void writeTo(DataOutput out) throws Exception {
  3. try {
  4. Util.writeObject(task, out);
  5. }
  6. catch (IOException e) {
  7. throw e;
  8. }
  9. catch (Exception e) {
  10. throw new IOException("Exception encountered while writing execution runnable", e);
  11. }
  12. try {
  13. Util.writeObject(result, out);
  14. }
  15. catch (IOException e) {
  16. throw e;
  17. }
  18. catch (Exception e) {
  19. throw new IOException("Exception encountered while writing execution result", e);
  20. }
  21. }
  22. @SuppressWarnings("unchecked")

代码示例来源:origin: wildfly/wildfly

  1. @Override
  2. public void writeTo(DataOutput out) throws Exception {
  3. out.writeUTF(_classCallable.getName());
  4. out.writeByte(_constructorNumber);
  5. out.writeByte(_args.length);
  6. for (Object arg : _args) {
  7. try {
  8. Util.writeObject(arg, out);
  9. }
  10. catch (Exception e) {
  11. throw new IOException("failed to write arg " + arg);
  12. }
  13. }
  14. }

代码示例来源:origin: io.vertx/vertx-jgroups

  1. @Override
  2. public void writeTo(DataOutput out) throws Exception {
  3. out.writeInt(values.size());
  4. for (T value : values) {
  5. Util.writeObject(value, out);
  6. }
  7. }

代码示例来源:origin: org.jboss.eap/wildfly-client-all

  1. @Override
  2. public void writeTo(DataOutput out) throws Exception {
  3. try {
  4. Util.writeObject(task, out);
  5. }
  6. catch (IOException e) {
  7. throw e;
  8. }
  9. catch (Exception e) {
  10. throw new IOException("Exception encountered while writing execution runnable", e);
  11. }
  12. try {
  13. Util.writeObject(result, out);
  14. }
  15. catch (IOException e) {
  16. throw e;
  17. }
  18. catch (Exception e) {
  19. throw new IOException("Exception encountered while writing execution result", e);
  20. }
  21. }
  22. @SuppressWarnings("unchecked")

代码示例来源:origin: org.jboss.eap/wildfly-client-all

  1. @Override
  2. public void writeTo(DataOutput out) throws Exception {
  3. out.writeUTF(_classCallable.getName());
  4. out.writeByte(_constructorNumber);
  5. out.writeByte(_args.length);
  6. for (Object arg : _args) {
  7. try {
  8. Util.writeObject(arg, out);
  9. }
  10. catch (Exception e) {
  11. throw new IOException("failed to write arg " + arg);
  12. }
  13. }
  14. }

代码示例来源:origin: Jasig/uPortal

  1. @Override
  2. public void writeTo(DataOutput out) throws Exception {
  3. if (log.isDebugEnabled()) {
  4. log.debug("HashedDaoAuthToken writeTo()");
  5. }
  6. Util.writeObject(this.getAuthValue(), out);
  7. }

代码示例来源:origin: org.jasig.portal/uPortal-utils-core

  1. @Override
  2. public void writeTo(DataOutput out) throws Exception {
  3. if (log.isDebugEnabled()) {
  4. log.debug("HashedDaoAuthToken writeTo()");
  5. }
  6. Util.writeObject(this.getAuthValue(), out);
  7. }

相关文章

Util类方法