Enum ActiveTransactionRegistry
java.lang.Object
java.lang.Enum<ActiveTransactionRegistry>
org.eclipse.rdf4j.http.server.repository.transaction.ActiveTransactionRegistry
- All Implemented Interfaces:
Serializable
,Comparable<ActiveTransactionRegistry>
,java.lang.constant.Constable
Registry keeping track of active transactions identified by a
UUID
.- Author:
- Jeen Broekstra
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic String
Deprecated.static int
Deprecated.since 2.3 useProtocol.DEFAULT_TIMEOUT
-
Method Summary
Modifier and TypeMethodDescriptionvoid
active(org.eclipse.rdf4j.http.server.repository.transaction.Transaction txn)
Resets transaction timeout.void
deregister(org.eclipse.rdf4j.http.server.repository.transaction.Transaction transaction)
long
getTimeout(TimeUnit unit)
org.eclipse.rdf4j.http.server.repository.transaction.Transaction
getTransaction(UUID id)
void
register(org.eclipse.rdf4j.http.server.repository.transaction.Transaction txn)
static ActiveTransactionRegistry
Returns the enum constant of this type with the specified name.static ActiveTransactionRegistry[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Field Details
-
CACHE_TIMEOUT_PROPERTY
Deprecated.since 2.3 useProtocol.CACHE_TIMEOUT_PROPERTY
Configurable system propertyrdf4j.server.txn.registry.timeout
for specifying the transaction cache timeout (in seconds).- See Also:
- Constant Field Values
-
DEFAULT_TIMEOUT
Deprecated.since 2.3 useProtocol.DEFAULT_TIMEOUT
Default timeout setting for transaction cache entries (in seconds).- See Also:
- Constant Field Values
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getTimeout
-
register
public void register(org.eclipse.rdf4j.http.server.repository.transaction.Transaction txn)- Parameters:
txn
-
-
getTransaction
-
active
public void active(org.eclipse.rdf4j.http.server.repository.transaction.Transaction txn)Resets transaction timeout. If transaction has already timed-out, reinsert the transaction.- Parameters:
txn
-
-
deregister
public void deregister(org.eclipse.rdf4j.http.server.repository.transaction.Transaction transaction)- Parameters:
transaction
-
-
Protocol.CACHE_TIMEOUT_PROPERTY