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

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

public class WaitTag
extends UseMutexTag

This calls mutex.wait() on the mutex passed in via the "mutex" attribute.

Author:
Jason Horman

Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
WaitTag()
           
 
Method Summary
 void setTimeout(long timeout)
          Set how long the wait should last.
 void useMutex(java.lang.Object mutex, org.apache.commons.jelly.XMLOutput output)
          Start waiting
 
Methods inherited from class org.apache.commons.jelly.tags.threads.UseMutexTag
doTag, getMutex, setMutex
 
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
 

Constructor Detail

WaitTag

public WaitTag()
Method Detail

useMutex

public void useMutex(java.lang.Object mutex,
                     org.apache.commons.jelly.XMLOutput output)
              throws org.apache.commons.jelly.JellyTagException
Start waiting

Specified by:
useMutex in class UseMutexTag
Throws:
org.apache.commons.jelly.JellyTagException

setTimeout

public void setTimeout(long timeout)
Set how long the wait should last. If <= 0 the wait will last until a notify occurs.

Parameters:
timeout - in millis


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.