public class PetStoreOperationsWithFailures extends PetStoreOperations
| Modifier and Type | Class and Description |
|---|---|
static class |
PetStoreOperationsWithFailures.PetStoreErrorHandler |
PetStoreOperations.CorrelationInfoOutputResolver| Modifier and Type | Field and Description |
|---|---|
static String |
CONNECTION_FAIL |
operationExecutionCounter, shouldFailWithConnectionException| Constructor and Description |
|---|
PetStoreOperationsWithFailures() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
failConnection(PetStoreClient client) |
Integer |
failOperationWithException(PetStoreClient client) |
Integer |
failOperationWithThrowable(PetStoreClient client) |
org.mule.runtime.extension.api.runtime.streaming.PagingProvider<PetStoreClient,Integer> |
failPagedOperation(int failOnPage,
boolean stickyConnections,
boolean throwConnectivity) |
org.mule.runtime.extension.api.runtime.streaming.PagingProvider<PetStoreClient,Integer> |
failPagedOperationWithErrorHandler(ErrorAction errorAction) |
static List<Thread> |
getConnectionThreads() |
static void |
resetConnectionThreads() |
describeSerializedAnimal, echoWithSignature, failsToReadStream, getAquarium, getBreeder, getCage, getCashier, getClient, getClientOnLatch, getConfig, getConnectionAge, getDefaultEncoding, getFishFromRiverStream, getForbiddenPets, getPetCorrelation, getPets, getPetStoreDeal, getPetsWithIntermitentConnectionProblemAndClosingStream, getStreamedSignature, makePhoneCall, setSecureCage, spellBuiltIn, spellClass, spellObjectpublic static final String CONNECTION_FAIL
public static void resetConnectionThreads()
public Integer failConnection(@Connection PetStoreClient client) throws org.mule.runtime.api.connection.ConnectionException
org.mule.runtime.api.connection.ConnectionExceptionpublic Integer failOperationWithException(@Connection PetStoreClient client) throws Exception
Exceptionpublic Integer failOperationWithThrowable(@Connection PetStoreClient client) throws Throwable
Throwable@Throws(value=PetStoreCustomErrorProvider.class) public org.mule.runtime.extension.api.runtime.streaming.PagingProvider<PetStoreClient,Integer> failPagedOperation(int failOnPage, @Optional(defaultValue="false") boolean stickyConnections, @Optional(defaultValue="true") boolean throwConnectivity)
@Throws(value=PetStoreCustomErrorProvider.class) @OnException(value=PetStoreOperationsWithFailures.PetStoreErrorHandler.class) public org.mule.runtime.extension.api.runtime.streaming.PagingProvider<PetStoreClient,Integer> failPagedOperationWithErrorHandler(ErrorAction errorAction)
Copyright © 2003–2019 MuleSoft, Inc.. All rights reserved.