public final class CancelableRequestFactory extends java.lang.Object implements RequestFactory
| Constructor and Description |
|---|
CancelableRequestFactory(RequestFactory factory,
java.util.function.Consumer<java.lang.Runnable> wrapper) |
| Modifier and Type | Method and Description |
|---|---|
Request |
newRequest(RequestContext context)
Create a request within specified context.
|
public CancelableRequestFactory(@Nonnull
RequestFactory factory,
@Nonnull
java.util.function.Consumer<java.lang.Runnable> wrapper)
@Nonnull public Request newRequest(@Nonnull RequestContext context) throws java.lang.Exception
RequestFactorynewRequest in interface RequestFactorycontext - the request context.java.lang.Exception - if there is an error creating request.