Package io.micronaut.http.filter
Record Class GenericHttpFilter.Async
java.lang.Object
java.lang.Record
io.micronaut.http.filter.GenericHttpFilter.Async
- Record Components:
actual
- Actual filterexecutor
- Executor to run the filter on
- All Implemented Interfaces:
Ordered
,GenericHttpFilter
- Enclosing interface:
- GenericHttpFilter
@Internal
public static record GenericHttpFilter.Async(GenericHttpFilter actual, Executor executor)
extends Record
implements GenericHttpFilter, Ordered
Wrapper around a filter that signifies the filter should be run asynchronously on the given
executor. Usually from an
ExecuteOn
annotation.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.http.filter.GenericHttpFilter
GenericHttpFilter.AroundLegacy, GenericHttpFilter.Async, GenericHttpFilter.Terminal, GenericHttpFilter.TerminalReactive
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionAsync
(GenericHttpFilter actual, Executor executor) Creates an instance of aAsync
record class. -
Method Summary
Modifier and TypeMethodDescriptionactual()
Returns the value of theactual
record component.final boolean
Indicates whether some other object is "equal to" this one.executor()
Returns the value of theexecutor
record component.int
getOrder()
final int
hashCode()
Returns a hash code value for this object.boolean
boolean
When the filter is using the continuation it needs to be suspended and wait for the response.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
isSuspended
public boolean isSuspended()Description copied from interface:GenericHttpFilter
When the filter is using the continuation it needs to be suspended and wait for the response.- Specified by:
isSuspended
in interfaceGenericHttpFilter
- Returns:
- true if suspended
-
isFiltersException
public boolean isFiltersException()- Specified by:
isFiltersException
in interfaceGenericHttpFilter
- Returns:
- true if the filter can receive the processing exception.
-
getOrder
public int getOrder() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
actual
Returns the value of theactual
record component.- Returns:
- the value of the
actual
record component
-
executor
Returns the value of theexecutor
record component.- Returns:
- the value of the
executor
record component
-