From 780b92ada9afcf1d58085a83a0b9e6bc982203d1 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 17 Feb 2015 17:25:57 +0000 Subject: Imported from /home/lorry/working-area/delta_berkeleydb/db-6.1.23.tar.gz. --- .../sleepycat/collections/TransactionRunner.html | 983 ++++++++++----------- 1 file changed, 477 insertions(+), 506 deletions(-) (limited to 'docs/java/com/sleepycat/collections/TransactionRunner.html') diff --git a/docs/java/com/sleepycat/collections/TransactionRunner.html b/docs/java/com/sleepycat/collections/TransactionRunner.html index b55e66a6..15b532c4 100644 --- a/docs/java/com/sleepycat/collections/TransactionRunner.html +++ b/docs/java/com/sleepycat/collections/TransactionRunner.html @@ -1,110 +1,108 @@ - - - - - -TransactionRunner (Oracle - Berkeley DB Java API) - - - - - - - - - - - - -
- - +//--> + + - - - - - - - - - - - - - - - - -
-Berkeley DB
version 5.3.21
-
- + + +
+ + +
+ + + - -
-

- -com.sleepycat.collections -
-Class TransactionRunner

-
-java.lang.Object
-  extended by com.sleepycat.collections.TransactionRunner
-
-
-
-
public class TransactionRunner
extends Object
- - -

-Starts a transaction, calls TransactionWorker.doWork(), and handles +

+
com.sleepycat.collections
+

Class TransactionRunner

+
+
+ +
+ +
+
+
    +
  • - - - - - - -
    -Field Detail
    - -

    -DEFAULT_MAX_RETRIES

    -
    -public static final int DEFAULT_MAX_RETRIES
    -
    -
    The default maximum number of retries. -

    -

    -
    See Also:
    Constant Field Values
    -
    - +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DEFAULT_MAX_RETRIES

        +
        public static final int DEFAULT_MAX_RETRIES
        +
        The default maximum number of retries.
        +
        See Also:
        Constant Field Values
        +
      • +
      +
    • +
    - - - - - - -
    -Constructor Detail
    - -

    -TransactionRunner

    -
    -public TransactionRunner(Environment env)
    -
    -
    Creates a transaction runner for a given Berkeley DB environment. - The default maximum number of retries (DEFAULT_MAX_RETRIES) and - a null (default) TransactionConfig will be used. -

    -

    -
    Parameters:
    env - is the environment for running transactions.
    -
    -
    - -

    -TransactionRunner

    -
    -public TransactionRunner(Environment env,
    -                         int maxRetries,
    -                         TransactionConfig config)
    -
    -
    Creates a transaction runner for a given Berkeley DB environment and - with a given number of maximum retries. -

    -

    -
    Parameters:
    env - is the environment for running transactions.
    maxRetries - is the maximum number of retries that will be - performed when deadlocks are detected.
    config - the transaction configuration used for calling - Environment.beginTransaction(com.sleepycat.db.Transaction, com.sleepycat.db.TransactionConfig), or null to use the default +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TransactionRunner

        +
        public TransactionRunner(Environment env)
        +
        Creates a transaction runner for a given Berkeley DB environment. + The default maximum number of retries (DEFAULT_MAX_RETRIES) and + a null (default) TransactionConfig will be used.
        +
        Parameters:
        env - is the environment for running transactions.
        +
      • +
      + + + +
        +
      • +

        TransactionRunner

        +
        public TransactionRunner(Environment env,
        +                 int maxRetries,
        +                 TransactionConfig config)
        +
        Creates a transaction runner for a given Berkeley DB environment and + with a given number of maximum retries.
        +
        Parameters:
        env - is the environment for running transactions.
        maxRetries - is the maximum number of retries that will be + performed when deadlocks are detected.
        config - the transaction configuration used for calling + Environment.beginTransaction(com.sleepycat.db.Transaction, com.sleepycat.db.TransactionConfig), or null to use the default configuration. The configuration object is not cloned, and - any modifications to it will impact subsequent transactions.
        -
    - + any modifications to it will impact subsequent transactions.
    +
  • +
+ + - - - - - - -
-Method Detail
- -

-getMaxRetries

-
-public int getMaxRetries()
-
-
Returns the maximum number of retries that will be performed when - deadlocks are detected. -

-

-
-
-
-
- -

-setMaxRetries

-
-public void setMaxRetries(int maxRetries)
-
-
Changes the maximum number of retries that will be performed when +
    +
  • + + +

    Method Detail

    + + + +
      +
    • +

      getMaxRetries

      +
      public int getMaxRetries()
      +
      Returns the maximum number of retries that will be performed when + deadlocks are detected.
      +
    • +
    + + + +
      +
    • +

      setMaxRetries

      +
      public void setMaxRetries(int maxRetries)
      +
      Changes the maximum number of retries that will be performed when deadlocks are detected. - Calling this method does not impact transactions already running. -

      -

      -
      -
      -
-
- -

-getAllowNestedTransactions

-
-public boolean getAllowNestedTransactions()
-
-
Returns whether nested transactions will be created if + Calling this method does not impact transactions already running.
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+
Parameters:
exception - an exception that was thrown by the TransactionWorker.doWork() method or thrown when beginning or committing the transaction. If the retries value is greater or equal to maxRetries when this method returns normally, this exception - will be thrown by the run method.
retries - the current value of a counter that starts out at zero - and is incremented when each retry is performed.
maxRetries - the maximum retries to be performed. By default, - this value is set to getMaxRetries(). This method may return a - different maximum retries value to override that default. -
Returns:
the maximum number of retries to perform. The + will be thrown by the run method.
retries - the current value of a counter that starts out at zero + and is incremented when each retry is performed.
maxRetries - the maximum retries to be performed. By default, + this value is set to getMaxRetries(). This method may return a + different maximum retries value to override that default.
+
Returns:
the maximum number of retries to perform. The default policy is to return the maxRetries parameter value - if the exception parameter value is an instance of DeadlockException. -
Throws: -
Exception - to cause the exception to be thrown by the run method. The default policy is to throw the exception - parameter value if it is not an instance of DeadlockException.
Since:
-
3.4
-
- - + if the exception parameter value is an instance of DeadlockException. +
Throws:
+
java.lang.Exception - to cause the exception to be thrown by the run method. The default policy is to throw the exception + parameter value if it is not an instance of DeadlockException.
Since:
+
3.4
+ + + + + + + + -
- - - - - - - - - - - - - - - - - - -
-Berkeley DB
version 5.3.21
-
- + + +
+ + +
+ + + - -
-Copyright (c) 1996, 2012 Oracle and/or its affiliates. All rights reserved. - - +

Copyright (c) 1996, 2015 Oracle and/or its affiliates. All rights reserved.

+ + -- cgit v1.2.1