public class XAOnePhaseResource extends Object implements OnePhaseResource
| Constructor and Description |
|---|
XAOnePhaseResource()
Default constructor for deserialising resource.
|
XAOnePhaseResource(XAResource xaResource,
Xid xid,
Object[] params)
Construct the one phase wrapper for the specified resource.
|
| Modifier and Type | Method and Description |
|---|---|
int |
commit()
Commit the one phase resource.
|
void |
pack(OutputObjectState os)
Pack the state of the resource.
|
int |
rollback()
Commit the one phase resource.
|
String |
toString() |
void |
unpack(InputObjectState is)
Unpack the state of the resource.
|
public XAOnePhaseResource()
public XAOnePhaseResource(XAResource xaResource, Xid xid, Object[] params)
xaResource - The XA resource being wrapped.xid - The transaction identifier.params - additional params to pass through.public int commit()
commit in interface OnePhaseResourcepublic int rollback()
rollback in interface OnePhaseResourcepublic void pack(OutputObjectState os) throws IOException
pack in interface OnePhaseResourceos - The object output state.IOExceptionpublic void unpack(InputObjectState is) throws IOException
unpack in interface OnePhaseResourceis - The object input state.IOExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.