Class CachingRDFServiceExecutor.RDFServiceCallable<T>

  • Type Parameters:
    T -
    All Implemented Interfaces:
    Callable<T>
    Enclosing class:
    CachingRDFServiceExecutor<T>

    public abstract static class CachingRDFServiceExecutor.RDFServiceCallable<T>
    extends Object
    implements Callable<T>
    Class to be implemented by user to provide the means of generating the results
    • Constructor Detail

      • RDFServiceCallable

        public RDFServiceCallable()
        Default constructor
      • RDFServiceCallable

        public RDFServiceCallable​(CachingRDFServiceExecutor.Affinity affinity)
        Constructor that allows an affinity object to be supplied
        Parameters:
        affinity - Affinity
    • Method Detail

      • call

        public final T call()
                     throws Exception
        Entry point for the background threads, ensuring the right start / cleanup is done
        Specified by:
        call in interface Callable<T>
        Throws:
        Exception - Any exception
      • callWithService

        protected abstract T callWithService​(edu.cornell.mannlib.vitro.webapp.rdfservice.RDFService rdfService)
                                      throws Exception
        Method for users to implement, to return the results
        Parameters:
        rdfService - An RDFService
        Throws:
        Exception - Any exception