JavaScript is disabled on your browser.
Skip navigation links
gnu.mapping

Class RunnableClosure<T>

  • All Implemented Interfaces:
    java.lang.Runnable, java.util.concurrent.Callable<T>


    public class RunnableClosure<T>
    extends java.lang.Object
    implements java.util.concurrent.Callable<T>, java.lang.Runnable
    • Method Summary

      All Methods
      Modifier and Type Method and Description
      T call ()
      CallContext getCallContext ()
      Get the CallContext we use for this Thread.
      java.lang.String getName ()
      java.lang.Object getResult ()
      Get the result of running this Runnable.
      void run ()
      void setName (java.lang.String name)
      java.lang.String toString ()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RunnableClosure

        public RunnableClosure(Procedure action)
      • RunnableClosure

        public RunnableClosure(Procedure action,
         gnu.kawa.io.InPort in,
         gnu.kawa.io.OutPort out,
         gnu.kawa.io.OutPort err)
    • Method Detail

      • getName

        public java.lang.String getName()
      • setName

        public void setName(java.lang.String name)
      • getCallContext

        public final CallContext getCallContext()
        Get the CallContext we use for this Thread.
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • getResult

        public java.lang.Object getResult()
         throws java.lang.Throwable
        Get the result of running this Runnable. The result is a value or a thrown exception. Should be called after {#code run} finishes.
        Throws:
        java.lang.Throwable
      • call

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

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

AltStyle によって変換されたページ (->オリジナル) /