- call() - Method in class org.apache.commons.transaction.util.RendezvousBarrier
-
Notify the barrier that you (the current thread) will not come to the meeting point.
- changedKeys() - Method in class org.apache.commons.transaction.memory.OptimisticMapWrapper.CopyingTxContext
-
- changes - Variable in class org.apache.commons.transaction.memory.TransactionalMapWrapper.TxContext
-
- checkForConflicts() - Method in class org.apache.commons.transaction.memory.OptimisticMapWrapper
-
- checkForVirtualAdminCommand(Object) - Method in class org.apache.commons.transaction.file.VirtualAdminCommandsFileResourceManager
-
- checkLock(Object, Object, int, boolean) - Method in class org.apache.commons.transaction.locking.GenericLockManager
-
- checkLock(Object, Object, int, boolean) - Method in interface org.apache.commons.transaction.locking.LockManager2
-
Determines if a lock could be acquire without actually acquiring it.
- checkReadLock(Object, Object) - Method in class org.apache.commons.transaction.locking.ReadWriteLockManager
-
Determines if a shared, reentrant read lock on a resource
could be acquired without actually acquiring it.
- checkThreshhold - Variable in class org.apache.commons.transaction.locking.GenericLockManager
-
- checkWriteLock(Object, Object) - Method in class org.apache.commons.transaction.locking.ReadWriteLockManager
-
Determines if an exclusive, reentrant write lock on a resource
could be acquired without actually acquiring it.
- cleanUp - Variable in class org.apache.commons.transaction.file.FileResourceManager
-
- cleanUp() - Method in class org.apache.commons.transaction.file.FileResourceManager.TransactionContext
-
- clear() - Method in class org.apache.commons.transaction.memory.OptimisticMapWrapper.CopyingTxContext
-
- clear() - Method in class org.apache.commons.transaction.memory.PessimisticMapWrapper.LockingTxContext
-
- clear() - Method in class org.apache.commons.transaction.memory.TransactionalMapWrapper
-
- clear() - Method in class org.apache.commons.transaction.memory.TransactionalMapWrapper.TxContext
-
- cleared - Variable in class org.apache.commons.transaction.memory.TransactionalMapWrapper.TxContext
-
- closeOpenResource(Object) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- closeResources() - Method in class org.apache.commons.transaction.file.FileResourceManager.TransactionContext
-
- code - Variable in exception org.apache.commons.transaction.locking.LockException
-
- code - Variable in exception org.apache.commons.transaction.memory.LockException
-
Deprecated.
- CODE_DEADLOCK_VICTIM - Static variable in exception org.apache.commons.transaction.locking.LockException
-
Locking request canceled because of deadlock.
- CODE_DEADLOCK_VICTIM - Static variable in exception org.apache.commons.transaction.memory.LockException
-
Deprecated.
- CODE_INTERRUPTED - Static variable in exception org.apache.commons.transaction.locking.LockException
-
Thread has been interrupted while waiting for lock.
- CODE_INTERRUPTED - Static variable in exception org.apache.commons.transaction.memory.LockException
-
Deprecated.
- CODE_TIMED_OUT - Static variable in exception org.apache.commons.transaction.locking.LockException
-
Maximum wait time for a lock has been exceeded.
- CODE_TIMED_OUT - Static variable in exception org.apache.commons.transaction.memory.LockException
-
Deprecated.
- commit() - Method in class org.apache.commons.transaction.file.FileResourceManager.TransactionContext
-
- COMMIT_TIMEOUT - Static variable in class org.apache.commons.transaction.memory.OptimisticMapWrapper
-
- commitLock - Variable in class org.apache.commons.transaction.memory.OptimisticMapWrapper
-
- commitTime - Variable in class org.apache.commons.transaction.file.FileResourceManager.TransactionContext
-
- commitTransaction(Object) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- commitTransaction(Object) - Method in interface org.apache.commons.transaction.file.ResourceManager
-
Commis the transaction specified by the given transaction identifier.
- commitTransaction() - Method in class org.apache.commons.transaction.memory.OptimisticMapWrapper
-
- commitTransaction(boolean) - Method in class org.apache.commons.transaction.memory.OptimisticMapWrapper
-
- commitTransaction() - Method in class org.apache.commons.transaction.memory.TransactionalMapWrapper
-
Commits all changes made in the current transaction and deletes the association between the current thread
and the transaction.
- CommonsLoggingLogger - Class in org.apache.commons.transaction.util
-
- CommonsLoggingLogger(Log) - Constructor for class org.apache.commons.transaction.util.CommonsLoggingLogger
-
- compatibility - Variable in class org.apache.commons.transaction.locking.GenericLock.LockOwner
-
- COMPATIBILITY_NONE - Static variable in interface org.apache.commons.transaction.locking.MultiLevelLock2
-
Compatibility mode: none reentrant.
- COMPATIBILITY_REENTRANT - Static variable in interface org.apache.commons.transaction.locking.MultiLevelLock2
-
Compatibility mode: reentrant.
- COMPATIBILITY_REENTRANT_AND_SUPPORT - Static variable in interface org.apache.commons.transaction.locking.MultiLevelLock2
-
Compatibility mode: reentrant and supporting.
- COMPATIBILITY_SUPPORT - Static variable in interface org.apache.commons.transaction.locking.MultiLevelLock2
-
Compatibility mode: supporting.
- composeMessage(String, int, Object, Throwable) - Static method in exception org.apache.commons.transaction.file.ResourceManagerException
-
- composeMessage(String, int, Object) - Static method in exception org.apache.commons.transaction.file.ResourceManagerException
-
- ConflictException - Exception in org.apache.commons.transaction.memory
-
Exception displaying a conflict between two optimistic transactions.
- ConflictException(Object) - Constructor for exception org.apache.commons.transaction.memory.ConflictException
-
- containsKey(Object) - Method in class org.apache.commons.transaction.memory.TransactionalMapWrapper
-
- containsValue(Object) - Method in class org.apache.commons.transaction.memory.TransactionalMapWrapper
-
- CONTEXT_FILE - Static variable in class org.apache.commons.transaction.file.FileResourceManager
-
- copy(File, File) - Static method in class org.apache.commons.transaction.util.FileHelper
-
- copy(File, File, byte[]) - Static method in class org.apache.commons.transaction.util.FileHelper
-
Copies one file to another using the supplied buffer.
- copy(InputStream, File) - Static method in class org.apache.commons.transaction.util.FileHelper
-
- copy(InputStream, OutputStream) - Static method in class org.apache.commons.transaction.util.FileHelper
-
Copies an InputStream
to an OutputStream
using a local internal buffer for performance.
- copy(InputStream, OutputStream, byte[]) - Static method in class org.apache.commons.transaction.util.FileHelper
-
Copies an InputStream
to an OutputStream
using the specified buffer.
- copyChangesToConcurrentTransactions() - Method in class org.apache.commons.transaction.memory.OptimisticMapWrapper
-
- copyRec(File, File) - Static method in class org.apache.commons.transaction.util.FileHelper
-
Copies one directory or file to another.
- copyResource(Object, Object, Object, boolean) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- copyResource(Object, Object, Object, boolean) - Method in class org.apache.commons.transaction.file.VirtualAdminCommandsFileResourceManager
-
- count - Variable in class org.apache.commons.transaction.util.RendezvousBarrier
-
- create(String, long) - Method in class org.apache.commons.transaction.file.FileSequence
-
Creates a sequence if it does not already exist.
- createFile(String) - Static method in class org.apache.commons.transaction.util.FileHelper
-
Creates a file specified by a path.
- createLock(Object) - Method in class org.apache.commons.transaction.locking.GenericLockManager
-
- createLock(Object) - Method in class org.apache.commons.transaction.locking.ReadWriteLockManager
-
- createLock(Object) - Method in class org.apache.commons.transaction.locking.ReadWriteUpgradeLockManager
-
- createLogger(String) - Method in class org.apache.commons.transaction.util.CommonsLoggingLogger
-
- createLogger(String) - Method in class org.apache.commons.transaction.util.Log4jLogger
-
- createLogger(String) - Method in interface org.apache.commons.transaction.util.LoggerFacade
-
- createLogger(String) - Method in class org.apache.commons.transaction.util.PrintWriterLogger
-
- createMap() - Method in class org.apache.commons.transaction.memory.HashMapFactory
-
- createMap() - Method in interface org.apache.commons.transaction.memory.MapFactory
-
- createResource(Object, Object) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- createResource(Object, Object, boolean) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- createResource(Object, Object) - Method in interface org.apache.commons.transaction.file.ResourceManager
-
Creates a resource.
- createResource(Object, Object, boolean) - Method in interface org.apache.commons.transaction.file.ResourceManager
-
Creates a resource.
- createResource(Object, Object) - Method in class org.apache.commons.transaction.file.VirtualAdminCommandsFileResourceManager
-
- createResource(Object, Object, boolean) - Method in class org.apache.commons.transaction.file.VirtualAdminCommandsFileResourceManager
-
- createSet() - Method in class org.apache.commons.transaction.memory.HashSetFactory
-
- createSet() - Method in interface org.apache.commons.transaction.memory.SetFactory
-
- currentNumber - Variable in class org.apache.commons.transaction.util.TurnBarrier
-
- effectiveGlobalTimeouts - Variable in class org.apache.commons.transaction.locking.GenericLockManager
-
Maps onwerId to global effective time outs (i.e.
- entrySet() - Method in class org.apache.commons.transaction.memory.PessimisticMapWrapper
-
- entrySet() - Method in class org.apache.commons.transaction.memory.TransactionalMapWrapper
-
- equals(Object) - Method in class org.apache.commons.transaction.locking.GenericLock
-
- equals(Object) - Method in class org.apache.commons.transaction.locking.GenericLock.LockOwner
-
- equals(Object) - Method in class org.apache.commons.transaction.memory.TransactionalMapWrapper.HashEntry
-
- ERR_DEAD_LOCK - Static variable in interface org.apache.commons.transaction.file.ResourceManagerErrorCodes
-
Error code: lock could not be acquired error
- ERR_DUP_TX - Static variable in interface org.apache.commons.transaction.file.ResourceManagerErrorCodes
-
Error code: transaction identifier already exists error
- ERR_ISOLATION_LEVEL_UNSUPPORTED - Static variable in interface org.apache.commons.transaction.file.ResourceManagerErrorCodes
-
Error code: requested isolation level is not supported for this transaction error
- ERR_LOCK - Static variable in interface org.apache.commons.transaction.file.ResourceManagerErrorCodes
-
Error code: general lock error
- ERR_MARKED_FOR_ROLLBACK - Static variable in interface org.apache.commons.transaction.file.ResourceManagerErrorCodes
-
Error code: operation not possible as transaction is alredy marked for rollback error
- ERR_NO_LOCK - Static variable in interface org.apache.commons.transaction.file.ResourceManagerErrorCodes
-
Error code: lock could not be acquired error
- ERR_NO_SUCH_RESOURCE - Static variable in interface org.apache.commons.transaction.file.ResourceManagerErrorCodes
-
Error code: resource does not exist error
- ERR_NO_TX - Static variable in interface org.apache.commons.transaction.file.ResourceManagerErrorCodes
-
Error code: no transaction error
- ERR_RESOURCE_EXISTS - Static variable in interface org.apache.commons.transaction.file.ResourceManagerErrorCodes
-
Error code: resource already exists error
- ERR_RESOURCEID_INVALID - Static variable in interface org.apache.commons.transaction.file.ResourceManagerErrorCodes
-
Error code: resource identifier invalid error
- ERR_SYSTEM - Static variable in interface org.apache.commons.transaction.file.ResourceManagerErrorCodes
-
Error code: general system error
- ERR_SYSTEM_INCONSISTENT - Static variable in interface org.apache.commons.transaction.file.ResourceManagerErrorCodes
-
Error code: global inconsistent data system error
- ERR_THREAD_INVALID - Static variable in interface org.apache.commons.transaction.file.ResourceManagerErrorCodes
-
Error code: calling thread is not owner of transaction error (only in single thread implementations)
- ERR_TX_INACTIVE - Static variable in interface org.apache.commons.transaction.file.ResourceManagerErrorCodes
-
Error code: transaction inactive error
- ERR_TX_INCONSISTENT - Static variable in interface org.apache.commons.transaction.file.ResourceManagerErrorCodes
-
Error code: inconsistent transaction data system error
- ERR_TXID_INVALID - Static variable in interface org.apache.commons.transaction.file.ResourceManagerErrorCodes
-
Error code: transaction identifier invalid error
- ERR_UNKNOWN - Static variable in interface org.apache.commons.transaction.file.ResourceManagerErrorCodes
-
Error code: unknown error
- ERR_UNKNOWN_CODE - Static variable in exception org.apache.commons.transaction.file.ResourceManagerException
-
- ERR_UNKNOWN_TEXT - Static variable in exception org.apache.commons.transaction.file.ResourceManagerException
-
- executeAdminCommand(Object) - Method in class org.apache.commons.transaction.file.VirtualAdminCommandsFileResourceManager
-
- exists(String) - Method in class org.apache.commons.transaction.file.FileSequence
-
Checks if the sequence already exists.
- externalAdds - Variable in class org.apache.commons.transaction.memory.OptimisticMapWrapper.CopyingTxContext
-
- externalChangedKeys() - Method in class org.apache.commons.transaction.memory.OptimisticMapWrapper.CopyingTxContext
-
- externalChanges - Variable in class org.apache.commons.transaction.memory.OptimisticMapWrapper.CopyingTxContext
-
- externalDeletes - Variable in class org.apache.commons.transaction.memory.OptimisticMapWrapper.CopyingTxContext
-
- generatedUniqueTxId() - Method in class org.apache.commons.transaction.file.FileResourceManager
-
Generates a transaction identifier unique to this resource manager.
- GenericLock - Class in org.apache.commons.transaction.locking
-
A generic implementain of a simple multi level lock.
- GenericLock(Object, int, LoggerFacade) - Constructor for class org.apache.commons.transaction.locking.GenericLock
-
Creates a new lock.
- GenericLock.LockOwner - Class in org.apache.commons.transaction.locking
-
- GenericLock.LockOwner(Object, int, int, boolean) - Constructor for class org.apache.commons.transaction.locking.GenericLock.LockOwner
-
- GenericLockManager - Class in org.apache.commons.transaction.locking
-
- GenericLockManager(int, LoggerFacade, long, long) - Constructor for class org.apache.commons.transaction.locking.GenericLockManager
-
Creates a new generic lock manager.
- GenericLockManager(int, LoggerFacade, long) - Constructor for class org.apache.commons.transaction.locking.GenericLockManager
-
- GenericLockManager(int, LoggerFacade) - Constructor for class org.apache.commons.transaction.locking.GenericLockManager
-
- get(Object) - Method in class org.apache.commons.transaction.memory.OptimisticMapWrapper.CopyingTxContext
-
- get(Object) - Method in class org.apache.commons.transaction.memory.PessimisticMapWrapper.LockingTxContext
-
- get(Object) - Method in class org.apache.commons.transaction.memory.TransactionalMapWrapper
-
- get(Object) - Method in class org.apache.commons.transaction.memory.TransactionalMapWrapper.TxContext
-
- getActiveTx() - Method in class org.apache.commons.transaction.memory.TransactionalMapWrapper
-
- getAll(Object) - Method in class org.apache.commons.transaction.locking.GenericLockManager
-
- getAll(Object) - Method in interface org.apache.commons.transaction.locking.LockManager2
-
Gets all locks (partially) held by an owner.
- getChangePath(Object, Object) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- getCode() - Method in exception org.apache.commons.transaction.locking.LockException
-
Returns the formal reason for the exception.
- getConflictingOwners(Object, int, int) - Method in class org.apache.commons.transaction.locking.GenericLock
-
- getConflictingOwners(GenericLock.LockOwner, Collection) - Method in class org.apache.commons.transaction.locking.GenericLock
-
- getConflictingWaiters(Object) - Method in class org.apache.commons.transaction.locking.GenericLock
-
- getContext(Object) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- getDefaultIsolationLevel() - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- getDefaultIsolationLevel() - Method in interface org.apache.commons.transaction.file.ResourceManager
-
Gets the default isolation level as an integer.
- getDefaultTransactionTimeout() - Method in class org.apache.commons.transaction.file.FileResourceManager
-
Gets the default transaction timeout in milliseconds.
- getDefaultTransactionTimeout() - Method in interface org.apache.commons.transaction.file.ResourceManager
-
Gets the default transaction timeout in milliseconds.
- getDeletePath(Object, Object) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- getIdForPath(String) - Method in class org.apache.commons.transaction.file.NoOpTransactionIdToPathMapper
-
- getIdForPath(String) - Method in interface org.apache.commons.transaction.file.TransactionIdToPathMapper
-
Maps the path string to a transaction id object.
- getIsolationLevel(Object) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- getIsolationLevel(Object) - Method in interface org.apache.commons.transaction.file.ResourceManager
-
Gets the isolation level for the specified transaction.
- getKey() - Method in class org.apache.commons.transaction.memory.TransactionalMapWrapper.HashEntry
-
- getLevel(Object, Object) - Method in class org.apache.commons.transaction.locking.GenericLockManager
-
- getLevel(Object, Object) - Method in interface org.apache.commons.transaction.locking.LockManager2
-
Gets the lock level held by certain owner on a certain resource.
- getLevelMaxLock() - Method in class org.apache.commons.transaction.locking.GenericLock
-
Gets the highst lock level possible.
- getLevelMinLock() - Method in class org.apache.commons.transaction.locking.GenericLock
-
Gets the lowest lock level possible.
- getLock(Object) - Method in class org.apache.commons.transaction.locking.GenericLockManager
-
- getLock(Object) - Method in interface org.apache.commons.transaction.locking.LockManager
-
Gets an existing lock on the specified resource.
- getLock(Object) - Method in interface org.apache.commons.transaction.locking.LockManager2
-
Gets an existing lock on the specified resource.
- getLockLevel(Object) - Method in class org.apache.commons.transaction.locking.GenericLock
-
- getLockLevel(Object) - Method in interface org.apache.commons.transaction.locking.MultiLevelLock
-
Retuns the highest lock level the specified owner holds on this lock or 0
if it holds no locks at all.
- getLocks() - Method in class org.apache.commons.transaction.locking.GenericLockManager
-
Gets all locks as orignials, no copies.
- getLogger() - Method in class org.apache.commons.transaction.file.FileResourceManager
-
Gets the logger used by this resource manager.
- getLogger() - Method in class org.apache.commons.transaction.util.Log4jLogger
-
- getMainPath(Object) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- getMaxLevelOwner() - Method in class org.apache.commons.transaction.locking.GenericLock
-
- getMaxLevelOwner(GenericLock.LockOwner, boolean) - Method in class org.apache.commons.transaction.locking.GenericLock
-
- getMaxLevelOwner(int, boolean) - Method in class org.apache.commons.transaction.locking.GenericLock
-
- getMaxLevelOwner(GenericLock.LockOwner, int, boolean) - Method in class org.apache.commons.transaction.locking.GenericLock
-
- getNextGlobalConflictTimeout(Set) - Method in class org.apache.commons.transaction.locking.GenericLockManager
-
- getOwner() - Method in class org.apache.commons.transaction.locking.GenericLock
-
- getPathForId(Object) - Method in class org.apache.commons.transaction.file.NoOpTransactionIdToPathMapper
-
- getPathForId(Object) - Method in interface org.apache.commons.transaction.file.ResourceIdToPathMapper
-
Maps the resource id object to a path string.
- getPathForId(Object) - Method in interface org.apache.commons.transaction.file.TransactionIdToPathMapper
-
Maps the transaction id object to a path string.
- getPathForId(Object) - Method in class org.apache.commons.transaction.file.URLEncodeIdMapper
-
- getPathForRead(Object, Object) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- getPathForWrite(Object, Object) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- getPathI(String) - Method in class org.apache.commons.transaction.file.FileSequence
-
- getPathII(String) - Method in class org.apache.commons.transaction.file.FileSequence
-
- getReason() - Method in exception org.apache.commons.transaction.locking.LockException
-
Returns the verbose for the exception.
- getRemainingTimeout() - Method in class org.apache.commons.transaction.file.FileResourceManager.TransactionContext
-
- getResourceId() - Method in class org.apache.commons.transaction.locking.GenericLock
-
Gets the resource assotiated to this lock.
- getResourceId() - Method in exception org.apache.commons.transaction.locking.LockException
-
Returns the resource the lock was tried on.
- getSharedLockLevel(FileResourceManager.TransactionContext) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- getStatus() - Method in exception org.apache.commons.transaction.file.ResourceManagerException
-
- getStoreDir() - Method in class org.apache.commons.transaction.file.FileResourceManager
-
Gets the store directory.
- getSupportedIsolationLevels() - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- getSupportedIsolationLevels() - Method in interface org.apache.commons.transaction.file.ResourceManager
-
Gets an array of all isolation levels supported by this resource manager.
- getTransactionBaseDir(Object) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- getTransactionState(Object) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- getTransactionState(Object) - Method in interface org.apache.commons.transaction.file.ResourceManager
-
Gets the state of the transaction specified by the given transaction identifier.
- getTransactionState() - Method in class org.apache.commons.transaction.memory.TransactionalMapWrapper
-
Returns the state of the current transaction.
- getTransactionTimeout(Object) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- getTransactionTimeout(Object) - Method in interface org.apache.commons.transaction.file.ResourceManager
-
Gets the transaction timeout of the specified transaction in milliseconds.
- getValue() - Method in class org.apache.commons.transaction.memory.TransactionalMapWrapper.HashEntry
-
- getVirtualAdminPath() - Method in class org.apache.commons.transaction.file.VirtualAdminCommandsFileResourceManager
-
- getWorkDir() - Method in class org.apache.commons.transaction.file.FileResourceManager
-
Gets the working directory.
- GLOBAL_LOCK - Static variable in class org.apache.commons.transaction.memory.PessimisticMapWrapper
-
- globalBufferCopy(InputStream, OutputStream) - Static method in class org.apache.commons.transaction.util.FileHelper
-
Copies an InputStream
to an OutputStream
using a global internal buffer for performance.
- globalLocks - Variable in class org.apache.commons.transaction.locking.GenericLockManager
-
Maps resourceId to lock.
- globalOpenResources - Variable in class org.apache.commons.transaction.file.FileResourceManager
-
- globalOwners - Variable in class org.apache.commons.transaction.locking.GenericLockManager
-
Maps onwerId to locks it (partially) owns.
- globalTimeoutMSecs - Variable in class org.apache.commons.transaction.locking.GenericLockManager
-
- globalTransactions - Variable in class org.apache.commons.transaction.file.FileResourceManager
-
- read(String) - Method in class org.apache.commons.transaction.file.FileSequence
-
- READ - Static variable in class org.apache.commons.transaction.memory.PessimisticMapWrapper
-
- READ_LOCK - Static variable in class org.apache.commons.transaction.locking.ReadWriteLock
-
- READ_LOCK - Static variable in class org.apache.commons.transaction.locking.ReadWriteUpgradeLock
-
- readFromPath(String) - Method in class org.apache.commons.transaction.file.FileSequence
-
- readLock(Object, Object) - Method in class org.apache.commons.transaction.locking.ReadWriteLockManager
-
Tries to acquire a shared, reentrant read lock on a resource.
- readOnly - Variable in class org.apache.commons.transaction.file.FileResourceManager.TransactionContext
-
- readOnly - Variable in class org.apache.commons.transaction.memory.TransactionalMapWrapper.TxContext
-
- readResource(Object) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- readResource(Object, Object) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- readResource(Object, Object) - Method in interface org.apache.commons.transaction.file.ResourceManager
-
Opens a streamable resource for reading.
- readResource(Object) - Method in interface org.apache.commons.transaction.file.ResourceManager
-
Opens a streamable resource for a single reading request not inside the scope of a transaction.
- readResource(Object) - Method in class org.apache.commons.transaction.file.VirtualAdminCommandsFileResourceManager
-
- readResource(Object, Object) - Method in class org.apache.commons.transaction.file.VirtualAdminCommandsFileResourceManager
-
- readTimeOut - Variable in class org.apache.commons.transaction.memory.PessimisticMapWrapper
-
- ReadWriteLock - Class in org.apache.commons.transaction.locking
-
Convenience implementation of a read/write lock based on
GenericLock
.
- ReadWriteLock(Object, LoggerFacade) - Constructor for class org.apache.commons.transaction.locking.ReadWriteLock
-
Creates a new read/write lock.
- ReadWriteLockManager - Class in org.apache.commons.transaction.locking
-
- ReadWriteLockManager(LoggerFacade, long) - Constructor for class org.apache.commons.transaction.locking.ReadWriteLockManager
-
Creates a new read/write lock manager.
- ReadWriteLockManager(int, LoggerFacade, long) - Constructor for class org.apache.commons.transaction.locking.ReadWriteLockManager
-
- ReadWriteUpgradeLock - Class in org.apache.commons.transaction.locking
-
Convenience implementation of a read/write lock with an option for upgrade
based on
ReadWriteUpgradeLock
.
Reads are shared which means there can be any number of concurrent read
accesses allowed by this lock.
- ReadWriteUpgradeLock(Object, LoggerFacade) - Constructor for class org.apache.commons.transaction.locking.ReadWriteUpgradeLock
-
Creates a new read/write/upgrade lock.
- ReadWriteUpgradeLockManager - Class in org.apache.commons.transaction.locking
-
- ReadWriteUpgradeLockManager(LoggerFacade, long) - Constructor for class org.apache.commons.transaction.locking.ReadWriteUpgradeLockManager
-
Creates a new read/write/upgrade lock manager.
- reason - Variable in exception org.apache.commons.transaction.locking.LockException
-
- reason - Variable in exception org.apache.commons.transaction.memory.LockException
-
Deprecated.
- recover() - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- recover() - Method in interface org.apache.commons.transaction.file.ResourceManager
-
Tries to bring this resource manager back to a consistent state.
- recoverContexts() - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- recoverState() - Method in class org.apache.commons.transaction.file.FileResourceManager.TransactionContext
-
- registerOpenResource(Object) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- registerResource(Object) - Method in class org.apache.commons.transaction.file.FileResourceManager.TransactionContext
-
- registerWaiter(GenericLock.LockOwner) - Method in class org.apache.commons.transaction.locking.GenericLock
-
- release(Object) - Method in class org.apache.commons.transaction.locking.GenericLock
-
- release(Object, Object) - Method in class org.apache.commons.transaction.locking.GenericLockManager
-
- release(Object, Object) - Method in interface org.apache.commons.transaction.locking.LockManager2
-
Releases all locks for a certain resource held by a certain owner.
- release(Object) - Method in interface org.apache.commons.transaction.locking.MultiLevelLock
-
Releases any lock levels the specified owner may hold on this lock.
- releaseAll(Object) - Method in class org.apache.commons.transaction.locking.GenericLockManager
-
- releaseAll(Object) - Method in interface org.apache.commons.transaction.locking.LockManager2
-
Releases all locks (partially) held by an owner.
- releaseAllNoTimeOutReset(Object) - Method in class org.apache.commons.transaction.locking.GenericLockManager
-
- releaseGlobalOpenResources() - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- releaseTimedOutOwners() - Method in class org.apache.commons.transaction.locking.GenericLockManager
-
- remove(Object) - Method in class org.apache.commons.transaction.memory.OptimisticMapWrapper.CopyingTxContext
-
- remove(Object) - Method in class org.apache.commons.transaction.memory.PessimisticMapWrapper.LockingTxContext
-
- remove(Object) - Method in class org.apache.commons.transaction.memory.PessimisticMapWrapper
-
- remove(Object) - Method in class org.apache.commons.transaction.memory.TransactionalMapWrapper
-
- remove(Object) - Method in class org.apache.commons.transaction.memory.TransactionalMapWrapper.TxContext
-
- removeLock(MultiLevelLock) - Method in class org.apache.commons.transaction.locking.GenericLockManager
-
- removeLock(MultiLevelLock) - Method in interface org.apache.commons.transaction.locking.LockManager
-
Removes the specified lock from the associated resource.
- removeLock(MultiLevelLock) - Method in interface org.apache.commons.transaction.locking.LockManager2
-
Removes the specified lock from the associated resource.
- removeOwner(Object, GenericLock) - Method in class org.apache.commons.transaction.locking.GenericLockManager
-
- removeOwnerWithoutLocks(Object) - Method in class org.apache.commons.transaction.locking.GenericLockManager
-
- removeRec(File) - Static method in class org.apache.commons.transaction.util.FileHelper
-
Removes a file.
- RendezvousBarrier - Class in org.apache.commons.transaction.util
-
Simple barrier that blocks until all parties have either called or have arrived at the meeting point.
- RendezvousBarrier(String, LoggerFacade) - Constructor for class org.apache.commons.transaction.util.RendezvousBarrier
-
- RendezvousBarrier(String, long, LoggerFacade) - Constructor for class org.apache.commons.transaction.util.RendezvousBarrier
-
- RendezvousBarrier(String, int, long, LoggerFacade) - Constructor for class org.apache.commons.transaction.util.RendezvousBarrier
-
- reset() - Method in class org.apache.commons.transaction.file.FileResourceManager
-
Resets the store by deleting work and store directory.
- reset() - Method in class org.apache.commons.transaction.util.RendezvousBarrier
-
Releases all waiting threads and resets the number of parties already arrived.
- reset() - Method in class org.apache.commons.transaction.util.TurnBarrier
-
Starts the barrier over again.
- resourceExists(Object) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- resourceExists(Object, Object) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- resourceExists(Object, Object) - Method in interface org.apache.commons.transaction.file.ResourceManager
-
Checks if a resource exists.
- resourceExists(Object) - Method in interface org.apache.commons.transaction.file.ResourceManager
-
Checks if a resource exists wihtout being in a transaction.
- resourceExists(Object) - Method in class org.apache.commons.transaction.file.VirtualAdminCommandsFileResourceManager
-
- resourceExists(Object, Object) - Method in class org.apache.commons.transaction.file.VirtualAdminCommandsFileResourceManager
-
- resourceId - Variable in class org.apache.commons.transaction.locking.GenericLock
-
- resourceId - Variable in exception org.apache.commons.transaction.locking.LockException
-
- ResourceIdToPathMapper - Interface in org.apache.commons.transaction.file
-
Mapper from a resourceId to a path string.
- ResourceManager - Interface in org.apache.commons.transaction.file
-
Interface for resource managers.
- ResourceManagerErrorCodes - Interface in org.apache.commons.transaction.file
-
Error codes for resource managers.
- ResourceManagerException - Exception in org.apache.commons.transaction.file
-
- ResourceManagerException(String, int, Object) - Constructor for exception org.apache.commons.transaction.file.ResourceManagerException
-
- ResourceManagerException(int, Object) - Constructor for exception org.apache.commons.transaction.file.ResourceManagerException
-
- ResourceManagerException(String) - Constructor for exception org.apache.commons.transaction.file.ResourceManagerException
-
- ResourceManagerException(String, int, Object, Throwable) - Constructor for exception org.apache.commons.transaction.file.ResourceManagerException
-
- ResourceManagerException(String, int, Throwable) - Constructor for exception org.apache.commons.transaction.file.ResourceManagerException
-
- ResourceManagerException(String, Throwable) - Constructor for exception org.apache.commons.transaction.file.ResourceManagerException
-
- ResourceManagerException(int, Object, Throwable) - Constructor for exception org.apache.commons.transaction.file.ResourceManagerException
-
- ResourceManagerSystemException - Exception in org.apache.commons.transaction.file
-
- ResourceManagerSystemException(String, int, Object, Throwable) - Constructor for exception org.apache.commons.transaction.file.ResourceManagerSystemException
-
- ResourceManagerSystemException(String, int, Object) - Constructor for exception org.apache.commons.transaction.file.ResourceManagerSystemException
-
- ResourceManagerSystemException(int, Object, Throwable) - Constructor for exception org.apache.commons.transaction.file.ResourceManagerSystemException
-
- ResourceManagerSystemException(int, Object) - Constructor for exception org.apache.commons.transaction.file.ResourceManagerSystemException
-
- resumeTransaction(TransactionalMapWrapper.TxContext) - Method in class org.apache.commons.transaction.memory.TransactionalMapWrapper
-
- rollback() - Method in class org.apache.commons.transaction.file.FileResourceManager.TransactionContext
-
- rollBackOrForward() - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- rollbackTransaction(Object) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- rollbackTransaction(Object) - Method in interface org.apache.commons.transaction.file.ResourceManager
-
Rolls back the transaction specified by the given transaction identifier.
- rollbackTransaction() - Method in class org.apache.commons.transaction.memory.OptimisticMapWrapper
-
- rollbackTransaction() - Method in class org.apache.commons.transaction.memory.TransactionalMapWrapper
-
Discards all changes made in the current transaction and deletes the association between the current thread
and the transaction.
- saveState() - Method in class org.apache.commons.transaction.file.FileResourceManager.TransactionContext
-
- setActiveTx(TransactionalMapWrapper.TxContext) - Method in class org.apache.commons.transaction.memory.TransactionalMapWrapper
-
- setDefaultTransactionTimeout(long) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
Sets the default transaction timeout.
- setDirty(Object, Throwable) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- SetFactory - Interface in org.apache.commons.transaction.memory
-
- setFactory - Variable in class org.apache.commons.transaction.memory.TransactionalMapWrapper
-
Factory to be used to create temporary sets for transactions.
- setIsolationLevel(Object, int) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- setIsolationLevel(Object, int) - Method in interface org.apache.commons.transaction.file.ResourceManager
-
Sets the isolation level for the specified transaction.
- setLockLevel(Object, GenericLock.LockOwner, int, int, boolean) - Method in class org.apache.commons.transaction.locking.GenericLock
-
- setTransactionTimeout(Object, long) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- setTransactionTimeout(Object, long) - Method in interface org.apache.commons.transaction.file.ResourceManager
-
Sets the transaction timeout of the specified transaction in milliseconds.
- setValue(Object) - Method in class org.apache.commons.transaction.memory.TransactionalMapWrapper.HashEntry
-
- setVirtualAdminPath(String) - Method in class org.apache.commons.transaction.file.VirtualAdminCommandsFileResourceManager
-
- shutdown(int, long) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- SHUTDOWN_MODE_KILL - Static variable in interface org.apache.commons.transaction.file.ResourceManager
-
Shutdown mode: Try to stop active transaction NOW, do no rollbacks
- SHUTDOWN_MODE_NORMAL - Static variable in interface org.apache.commons.transaction.file.ResourceManager
-
Shutdown mode: Wait for all transactions to complete
- SHUTDOWN_MODE_ROLLBACK - Static variable in interface org.apache.commons.transaction.file.ResourceManager
-
Shutdown mode: Try to roll back all active transactions
- signalTurn(int) - Method in class org.apache.commons.transaction.util.TurnBarrier
-
Signals the next turn.
- size() - Method in class org.apache.commons.transaction.memory.OptimisticMapWrapper.CopyingTxContext
-
- size() - Method in class org.apache.commons.transaction.memory.PessimisticMapWrapper.LockingTxContext
-
- size() - Method in class org.apache.commons.transaction.memory.TransactionalMapWrapper
-
- size() - Method in class org.apache.commons.transaction.memory.TransactionalMapWrapper.TxContext
-
- start() - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- start() - Method in interface org.apache.commons.transaction.file.ResourceManager
-
Starts this resource manager.
- startGlobalTimeout(Object, long) - Method in class org.apache.commons.transaction.locking.GenericLockManager
-
- startGlobalTimeout(Object, long) - Method in interface org.apache.commons.transaction.locking.LockManager2
-
Starts a global timeout for an owner.
- startNumber - Variable in class org.apache.commons.transaction.util.TurnBarrier
-
- startTime - Variable in class org.apache.commons.transaction.file.FileResourceManager.TransactionContext
-
- startTransaction(Object) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- startTransaction(Object) - Method in interface org.apache.commons.transaction.file.ResourceManager
-
Creates and starts a transaction using the specified transaction identifier.
- startTransaction() - Method in class org.apache.commons.transaction.memory.OptimisticMapWrapper
-
- startTransaction() - Method in class org.apache.commons.transaction.memory.PessimisticMapWrapper
-
- startTransaction() - Method in class org.apache.commons.transaction.memory.TransactionalMapWrapper
-
Starts a new transaction and associates it with the current thread.
- status - Variable in class org.apache.commons.transaction.file.FileResourceManager.TransactionContext
-
- status - Variable in exception org.apache.commons.transaction.file.ResourceManagerException
-
- status - Variable in class org.apache.commons.transaction.memory.TransactionalMapWrapper.TxContext
-
- statusToCode(int) - Static method in exception org.apache.commons.transaction.file.ResourceManagerException
-
- statusToString() - Method in exception org.apache.commons.transaction.file.ResourceManagerException
-
- statusToText(int) - Static method in exception org.apache.commons.transaction.file.ResourceManagerException
-
- stop(int) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- stop(int, long) - Method in class org.apache.commons.transaction.file.FileResourceManager
-
- stop(int, long) - Method in interface org.apache.commons.transaction.file.ResourceManager
-
Tries to stop this resource manager within the given timeout.
- stop(int) - Method in interface org.apache.commons.transaction.file.ResourceManager
-
Tries to stop this resource manager within a default timeout.
- storeDir - Variable in class org.apache.commons.transaction.file.FileResourceManager
-
- storeDir - Variable in class org.apache.commons.transaction.file.FileSequence
-
- suspended - Variable in class org.apache.commons.transaction.memory.TransactionalMapWrapper.TxContext
-
- suspendTransaction() - Method in class org.apache.commons.transaction.memory.TransactionalMapWrapper
-
Suspends the transaction associated to the current thread.
- sync() - Method in class org.apache.commons.transaction.file.FileResourceManager
-
Synchronizes persistent data with caches.