protected abstract static class GlobalTransaction.AbstractGlobalTxExternalizer<T extends GlobalTransaction> extends AbstractExternalizer<T>
Modifier | Constructor and Description |
---|---|
protected |
GlobalTransaction.AbstractGlobalTxExternalizer() |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
createGlobalTransaction()
Factory method for GlobalTransactions
|
T |
readObject(ObjectInput input)
Read an instance from the stream.
|
void |
writeObject(ObjectOutput output,
T gtx)
Write the object reference to the stream.
|
getId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTypeClasses
protected GlobalTransaction.AbstractGlobalTxExternalizer()
public void writeObject(ObjectOutput output, T gtx) throws IOException
Externalizer
output
- the object output to write togtx
- the object reference to writeIOException
- if an I/O error occursprotected abstract T createGlobalTransaction()
public T readObject(ObjectInput input) throws IOException, ClassNotFoundException
Externalizer
Externalizer.writeObject(ObjectOutput, Object)
method. Implementations are free
to create instances of the object read from the stream in any way that they
feel like. This could be via constructor, factory or reflection.input
- the object input to read fromIOException
- if an I/O error occursClassNotFoundException
- if a class could not be foundCopyright © 2012 JBoss by Red Hat. All Rights Reserved.