org.eclipse.stardust.engine.api.query
Class TimeoutPolicy

java.lang.Object
  extended by org.eclipse.stardust.engine.api.query.TimeoutPolicy
All Implemented Interfaces:
Serializable, EvaluationPolicy

public class TimeoutPolicy
extends Object
implements EvaluationPolicy

Supports specification of a runtime constraint on query execution. If query execution exceeds the maximum time allowed, an ConcurrencyException will be reported.

Using timeouts might be useful to handle deadlock scenarios, i.e. to increase the probability of queries being rolled back instead of concurrently performed modifications.

Version:
$Revision$
Author:
ubirkemeyer
See Also:
Serialized Form

Constructor Summary
TimeoutPolicy(int timeout)
          Initializes a new timeout policy.
 
Method Summary
 int getTimeout()
          Returns the number of seconds after which queries time out according to this policy.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeoutPolicy

public TimeoutPolicy(int timeout)
Initializes a new timeout policy.

Parameters:
timeout - The number of seconds after which queries time out.
Method Detail

getTimeout

public int getTimeout()
Returns the number of seconds after which queries time out according to this policy.

Returns:
The number of seconds.


Copyright © 2017 Eclipse Stardust. All Rights Reserved.