javax.ejb
Annotation Type AccessTimeout
@Target(value={METHOD,TYPE})
@Retention(value=RUNTIME)
public @interface AccessTimeout
Specifies the amount of time in a given time unit that a concurrent
access attempt should block before timing out.
A value of 0 means concurrent access is not permitted.
A value of -1 means wait indefinitely to acquire a lock.
Values less than -1 are not valid.
Required Element Summary |
long |
value
|
Optional Element Summary |
java.util.concurrent.TimeUnit |
unit
|
value
public abstract long value
unit
public abstract java.util.concurrent.TimeUnit unit
- Default:
- java.util.concurrent.TimeUnit.MILLISECONDS
Submit a bug or feature Copyright © 2009, 2010, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 4-June-2010 04:34