35 lines
996 B
Java
35 lines
996 B
Java
/*
|
|
* Copyright (c) 2005,2009 Declarative Engineering LLC.
|
|
* All rights reserved. This program and the accompanying materials
|
|
* are made available under the terms of the Declarative Engineering LLC
|
|
* verson 1 which accompanies this distribution, and is available at
|
|
* http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
|
|
*/
|
|
package com.de22.orb;
|
|
|
|
/**
|
|
* Holds a value and status information so that the orb can return extended information about a return value.
|
|
*/
|
|
class ValueHolder {
|
|
public static final int STATUS_OK = 0;
|
|
public static final int STATUS_TIMEOUT = 1;
|
|
public static final int STATUS_SOCKET_NOT_FOUND = 2;
|
|
public static final int STATUS_SOCKET_ERROR = 3;
|
|
|
|
public int status = 0;
|
|
public Object value = null;
|
|
/**
|
|
* ValueHolder constructor.
|
|
*/
|
|
ValueHolder() {
|
|
super();
|
|
}//ValueHolder()//
|
|
/**
|
|
* ValueHolder constructor.
|
|
*/
|
|
ValueHolder(Object value, int status) {
|
|
super();
|
|
this.value = value;
|
|
this.status = status;
|
|
}//ValueHolder()//
|
|
}//ValueHolder// |