public class XAOnePhaseResource extends Object implements OnePhaseResource, ExceptionDeferrer
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 |
getDeferredThrowables(List<Throwable> list)
Adds all supressed throwables of this ExceptionDeferrer to the given list in order of appearance.
|
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 OnePhaseResource
public int rollback()
rollback
in interface OnePhaseResource
public void pack(OutputObjectState os) throws IOException
pack
in interface OnePhaseResource
os
- The object output state.IOException
public void unpack(InputObjectState is) throws IOException
unpack
in interface OnePhaseResource
is
- The object input state.IOException
public void getDeferredThrowables(List<Throwable> list)
ExceptionDeferrer
getDeferredThrowables
in interface ExceptionDeferrer
Copyright © 2021 JBoss by Red Hat. All rights reserved.