Class CheckInterruptedClosure

java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.lang.Closure<Object>
de.uplanet.lucy.server.scripting.groovy.CheckInterruptedClosure
All Implemented Interfaces:
groovy.lang.GroovyCallable<Object>, groovy.lang.GroovyObject, Serializable, Cloneable, Runnable, Callable<Object>

@Scriptable public final class CheckInterruptedClosure extends groovy.lang.Closure<Object>
See Also:
  • Field Summary

    Fields inherited from class groovy.lang.Closure

    DELEGATE_FIRST, DELEGATE_ONLY, DONE, IDENTITY, OWNER_FIRST, OWNER_ONLY, SKIP, TO_SELF
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    CheckInterruptedClosure(String p_strMessage, long p_lTimeLimit)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    int
     

    Methods inherited from class groovy.lang.Closure

    andThen, andThenSelf, andThenSelf, asWritable, call, call, clone, compose, composeSelf, composeSelf, curry, curry, dehydrate, getDelegate, getDirective, getOwner, getParameterTypes, getProperty, getResolveStrategy, getThisObject, isCase, leftShift, leftShift, memoize, memoizeAtLeast, memoizeAtMost, memoizeBetween, ncurry, ncurry, rcurry, rcurry, rehydrate, rightShift, run, setDelegate, setDirective, setProperty, setResolveStrategy, trampoline, trampoline

    Methods inherited from class groovy.lang.GroovyObjectSupport

    getMetaClass, setMetaClass

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface groovy.lang.GroovyObject

    invokeMethod
  • Constructor Details

    • CheckInterruptedClosure

      public CheckInterruptedClosure(String p_strMessage)
      Parameters:
      p_strMessage - A message for the InterruptedException.
    • CheckInterruptedClosure

      public CheckInterruptedClosure(String p_strMessage, long p_lTimeLimit)
      Parameters:
      p_strMessage - A message for the InterruptedException.
      p_lTimeLimit - The time after that an InterruptedException is being thrown by this closure.
  • Method Details

    • call

      public Object call()
      Specified by:
      call in interface Callable<Object>
      Overrides:
      call in class groovy.lang.Closure<Object>
    • doCall

      public Object doCall()
    • getMaximumNumberOfParameters

      public int getMaximumNumberOfParameters()
      Overrides:
      getMaximumNumberOfParameters in class groovy.lang.Closure<Object>
      Returns:
      Always 0.