public class BAParticipantHelper extends Object
Constructor and Description |
---|
BAParticipantHelper() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
getRecoveryState(boolean useSerialization,
BusinessAgreementWithParticipantCompletionParticipant participant)
obtain a byte array containing the recovery state associated with the supplied
participant.
|
static boolean |
isSerializable(BusinessAgreementWithParticipantCompletionParticipant participant)
return true if the object can be saved and restored using serialization otherwise
return false
|
public static byte[] getRecoveryState(boolean useSerialization, BusinessAgreementWithParticipantCompletionParticipant 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 PersistableBAParticipant
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(BusinessAgreementWithParticipantCompletionParticipant participant)
participant
- Copyright © 2018 JBoss by Red Hat. All rights reserved.