Class CallableTask<T>

  • Type Parameters:
    T - the type of result produced by the Task
    All Implemented Interfaces:
    Task<T>, com.tangosol.io.ExternalizableLite, com.tangosol.io.pof.PortableObject, Serializable
    Direct Known Subclasses:
    ScheduledCallableTask

    public class CallableTask<T>
    extends Object
    implements Task<T>, com.tangosol.io.pof.PortableObject
    A Task that calls a Callable.
    Since:
    21.12
    Author:
    bo, lh
    See Also:
    Serialized Form
    • Field Detail

      • m_callable

        protected Callable<T> m_callable
        The value for the Task.
    • Constructor Detail

      • CallableTask

        public CallableTask()
        Constructs a CallableTask (required for serialization).
      • CallableTask

        public CallableTask​(Callable<T> callable)
        Constructs a CallableTask.
        Parameters:
        callable - the callable
    • Method Detail

      • readExternal

        public void readExternal​(DataInput in)
                          throws IOException
        Specified by:
        readExternal in interface com.tangosol.io.ExternalizableLite
        Throws:
        IOException
      • writeExternal

        public void writeExternal​(DataOutput out)
                           throws IOException
        Specified by:
        writeExternal in interface com.tangosol.io.ExternalizableLite
        Throws:
        IOException
      • readExternal

        public void readExternal​(com.tangosol.io.pof.PofReader in)
                          throws IOException
        Specified by:
        readExternal in interface com.tangosol.io.pof.PortableObject
        Throws:
        IOException
      • writeExternal

        public void writeExternal​(com.tangosol.io.pof.PofWriter out)
                           throws IOException
        Specified by:
        writeExternal in interface com.tangosol.io.pof.PortableObject
        Throws:
        IOException