public static class HandlerAfterAttemptContext.HandlerAfterAttemptContextBuilder extends Object
Modifier and Type | Method and Description |
---|---|
HandlerAfterAttemptContext |
build() |
HandlerAfterAttemptContext.HandlerAfterAttemptContextBuilder |
withException(Exception exception)
Fluent set for what the exception should be on the eventual HandlerAfterAttemptContext instance
|
HandlerAfterAttemptContext.HandlerAfterAttemptContextBuilder |
withRequest(Request<?> request)
Fluent set for what the request should be on the eventual HandlerAfterAttemptContext instance
|
HandlerAfterAttemptContext.HandlerAfterAttemptContextBuilder |
withResponse(Response<?> response)
Fluent set for what the response should be on the eventual HandlerAfterAttemptContext instance
|
public HandlerAfterAttemptContext.HandlerAfterAttemptContextBuilder withRequest(Request<?> request)
request
- the request that was attemptedpublic HandlerAfterAttemptContext.HandlerAfterAttemptContextBuilder withResponse(Response<?> response)
response
- response from the request attempt, or null if there was an errorpublic HandlerAfterAttemptContext.HandlerAfterAttemptContextBuilder withException(Exception exception)
exception
- exception generated by the request attempt, or null if the attempt was succcessfulpublic HandlerAfterAttemptContext build()
Copyright © 2019. All rights reserved.