本文整理了Java中org.jgroups.util.Util.readObject()
方法的一些代码示例,展示了Util.readObject()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.readObject()
方法的具体详情如下:
包路径:org.jgroups.util.Util
类名称:Util
方法名:readObject
暂无
代码示例来源:origin: wildfly/wildfly
@SuppressWarnings("unchecked")
@Override
public void readFrom(DataInput in) throws Exception {
// We can't use Util.readObject since it's size is limited to 2^15-1
// The runner could be larger than that possibly
try {
task = (Runnable)Util.readObject(in);
}
catch (IOException e) {
throw e;
}
catch (Exception e) {
throw new IOException("Exception encountered while reading execution runnable", e);
}
try {
result = (T)Util.readObject(in);
}
catch (IOException e) {
throw e;
}
catch (Exception e) {
throw new IOException("Exception encountered while reading execution result", e);
}
}
}
代码示例来源:origin: wildfly/wildfly
@SuppressWarnings("unchecked")
@Override
public void readFrom(DataInput in) throws Exception {
try {
String classname=in.readUTF();
_classCallable=ClassConfigurator.get(classname);
}
catch (ClassNotFoundException e) {
throw new IOException("failed to read class from classname", e);
}
_constructorNumber = in.readByte();
short numberOfArgs = in.readByte();
_args = new Object[numberOfArgs];
for (int i = 0; i < numberOfArgs; ++i) {
try {
_args[i] = Util.readObject(in);
}
catch (Exception e) {
throw new IOException("failed to read arg", e);
}
}
}
代码示例来源:origin: io.vertx/vertx-jgroups
@Override
public void readFrom(DataInput in) throws Exception {
int size = in.readInt();
T[] buffer = (T[]) new Object[size];
for (int i = 0; i < size; i++) {
buffer[i] = (T) Util.readObject(in);
}
values = new CopyOnWriteArrayList<>(buffer);
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
@SuppressWarnings("unchecked")
@Override
public void readFrom(DataInput in) throws Exception {
// We can't use Util.readObject since it's size is limited to 2^15-1
// The runner could be larger than that possibly
try {
task = (Runnable)Util.readObject(in);
}
catch (IOException e) {
throw e;
}
catch (Exception e) {
throw new IOException("Exception encountered while reading execution runnable", e);
}
try {
result = (T)Util.readObject(in);
}
catch (IOException e) {
throw e;
}
catch (Exception e) {
throw new IOException("Exception encountered while reading execution result", e);
}
}
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
@SuppressWarnings("unchecked")
@Override
public void readFrom(DataInput in) throws Exception {
try {
String classname=in.readUTF();
_classCallable=ClassConfigurator.get(classname);
}
catch (ClassNotFoundException e) {
throw new IOException("failed to read class from classname", e);
}
_constructorNumber = in.readByte();
short numberOfArgs = in.readByte();
_args = new Object[numberOfArgs];
for (int i = 0; i < numberOfArgs; ++i) {
try {
_args[i] = Util.readObject(in);
}
catch (Exception e) {
throw new IOException("failed to read arg", e);
}
}
}
代码示例来源:origin: org.jasig.portal/uPortal-utils-core
@Override
public void readFrom(DataInput in) throws Exception {
if (log.isDebugEnabled()) {
log.debug("HashedDaoAuthToken readFrom()");
}
this.authValue = (String) Util.readObject(in);
}
}
代码示例来源:origin: Jasig/uPortal
@Override
public void readFrom(DataInput in) throws Exception {
if (log.isDebugEnabled()) {
log.debug("HashedDaoAuthToken readFrom()");
}
this.authValue = (String) Util.readObject(in);
}
}
内容来源于网络,如有侵权,请联系作者删除!