Class PayaraValueHolder<T>
- java.lang.Object
-
- fish.payara.appserver.micro.services.data.PayaraValueHolder<T>
-
- Type Parameters:
T- value type
- All Implemented Interfaces:
Externalizable,Serializable
public class PayaraValueHolder<T> extends Object implements Externalizable
Packages up an object into a Serializable value- Author:
- steve
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PayaraValueHolder()PayaraValueHolder(T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetValue()voidreadExternal(ObjectInput in)voidwriteExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
PayaraValueHolder
public PayaraValueHolder()
-
PayaraValueHolder
public PayaraValueHolder(T value) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getValue
public T getValue() throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
-