public class ATParticipantHelper extends Object
| Constructor and Description |
|---|
ATParticipantHelper() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getRecoveryState(boolean useSerialization,
Durable2PCParticipant participant)
obtain a byte array containing the recovery state associated with the supplied
participant.
|
static boolean |
isSerializable(Durable2PCParticipant participant) |
public static byte[] getRecoveryState(boolean useSerialization,
Durable2PCParticipant participant)
throws Exception
useSerialization - true if the object should be converted to a byte array using
serialization otherwise it will be converted by casting to the PersistableATParticipant
interface and employing the getRecoveryState method.participant - the participant whose recovery state is to be obtainedException - an exception occurred generating the required recoverable statepublic static boolean isSerializable(Durable2PCParticipant participant)
participant - Copyright © 2018 JBoss by Red Hat. All rights reserved.