public class TransactionalPetStoreClient extends PetStoreClient implements org.mule.runtime.extension.api.connectivity.TransactionalConnection
| Constructor and Description |
|---|
TransactionalPetStoreClient(String username,
String password,
org.mule.runtime.api.tls.TlsContextFactory tlsContextFactory,
String configName,
Date openingDate,
List<Date> closedForHolidays,
List<LocalDateTime> discountDates) |
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
commit() |
boolean |
isBegun() |
boolean |
isCommited() |
boolean |
isRolledback() |
void |
rollback() |
disconnect, getClosedForHolidays, getConfigName, getDisconnectCount, getDiscountDates, getOpeningDate, getPassword, getPets, getTlsContext, getUsername, hasActiveConnectionpublic void begin()
throws Exception
begin in interface org.mule.runtime.extension.api.tx.TransactionalExceptionpublic void commit()
throws Exception
commit in interface org.mule.runtime.extension.api.tx.TransactionalExceptionpublic void rollback()
throws Exception
rollback in interface org.mule.runtime.extension.api.tx.TransactionalExceptionpublic boolean isBegun()
public boolean isCommited()
public boolean isRolledback()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.