Class PromiseTask.RunnableAdapter<T>

java.lang.Object
io.netty.util.concurrent.PromiseTask.RunnableAdapter<T>
All Implemented Interfaces:
java.util.concurrent.Callable<T>
Enclosing class:
PromiseTask<V>

private static final class PromiseTask.RunnableAdapter<T> extends java.lang.Object implements java.util.concurrent.Callable<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final T
     
    (package private) final java.lang.Runnable
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RunnableAdapter(java.lang.Runnable task, T result)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    java.lang.String
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • task

      final java.lang.Runnable task
    • result

      final T result
  • Constructor Details

    • RunnableAdapter

      RunnableAdapter(java.lang.Runnable task, T result)
  • Method Details

    • call

      public T call()
      Specified by:
      call in interface java.util.concurrent.Callable<T>
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object