Top Description Fields Constructors Methods
com.oracle.bmc.http.internal

public Class ErrorConsumer<REQUEST>

extends Object
implements Consumer<Throwable>
Class Inheritance
All Implemented Interfaces
java.util.function.Consumer
Type Parameters
<REQUEST>
The request type.
Imports
java.util.function.Consumer, com.oracle.bmc.responses.AsyncHandler

Basic Consumer type to handle failed calls.

Field Summary

Modifier and TypeField and Description
private final AsyncHandler<REQUEST, ?>
private static final Logger
private final REQUEST

Constructor Summary

AccessConstructor and Description
public
ErrorConsumer(final AsyncHandler<REQUEST, ?> handler, final REQUEST request)

Method Summary

Modifier and TypeMethod and Description
public void
accept(Throwable
the input argument
t
)

Implements java.util.function.Consumer.accept.

Performs this operation on the given argument.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

handlerback to summary
private final AsyncHandler<REQUEST, ?> handler
LOGback to summary
private static final Logger LOG
requestback to summary
private final REQUEST request

Constructor Detail

ErrorConsumerback to summary
public ErrorConsumer(final AsyncHandler<REQUEST, ?> handler, final REQUEST request)
Annotations
@java.beans.ConstructorProperties

Method Detail

acceptback to summary
public void accept(Throwable t)

Implements java.util.function.Consumer.accept.

Doc from java.util.function.Consumer.accept.

Performs this operation on the given argument.

Parameters
t:Throwable

the input argument

Annotations
@Override