org.apache.commons.jelly.tags.threads
Class SleepTag

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.tags.threads.SleepTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class SleepTag
extends org.apache.commons.jelly.TagSupport

Puts the current thread to sleep for some amount of time.

Author:
Jason Horman

Field Summary
private  long howLong
          How long to sleep for
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
SleepTag()
           
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput output)
          Put the thread to sleep
 void setFor(long howLong)
          How long to put the thread to sleep for
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

howLong

private long howLong
How long to sleep for

Constructor Detail

SleepTag

public SleepTag()
Method Detail

doTag

public void doTag(org.apache.commons.jelly.XMLOutput output)
           throws org.apache.commons.jelly.JellyTagException
Put the thread to sleep

Throws:
org.apache.commons.jelly.JellyTagException

setFor

public void setFor(long howLong)
How long to put the thread to sleep for

Parameters:
howLong - in millis