Record Class AsyncExecutor.Task<T>
java.lang.Object
java.lang.Record
org.jgroups.util.AsyncExecutor.Task<T>
- All Implemented Interfaces:
Runnable
- Enclosing class:
AsyncExecutor<T>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTask(Supplier<T> task, CompletableFuture<T> cf) Creates an instance of aTaskrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncf()Returns the value of thecfrecord component.protected AsyncExecutor.Task<T> final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidrun()task()Returns the value of thetaskrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Task
Creates an instance of aTaskrecord class.- Parameters:
task- the value for thetaskrecord componentcf- the value for thecfrecord component
-
-
Method Details
-
completeExceptionally
-
run
-
toString
-
hashCode
-
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). -
task
-
cf
Returns the value of thecfrecord component.- Returns:
- the value of the
cfrecord component
-