IStoreConnection Interface

public interface IStoreConnection

Instance of a store connection.

Method Summary

Modifier and Type Method and Description
void close()

Closes the store connection.

void closeWithUnlock(UUID lockId)

Closes the store connection after releasing lock.

StoreConnectionKind getKind()

Type of store connection.

IStoreTransactionScope getTransactionScope(StoreTransactionScopeKind kind)

Acquires a transactional scope on the connection.

void openWithLock(UUID lockId)

Open the store connection, and acquire a lock on the store.

Method Details

close

public void close()

Closes the store connection.

closeWithUnlock

public void closeWithUnlock(UUID lockId)

Closes the store connection after releasing lock.

Parameters:

lockId - Lock Id.

getKind

public StoreConnectionKind getKind()

Type of store connection.

getTransactionScope

public IStoreTransactionScope getTransactionScope(StoreTransactionScopeKind kind)

Acquires a transactional scope on the connection.

Parameters:

kind - Type of transaction scope.

Returns:

Transaction scope on the store connection.

openWithLock

public void openWithLock(UUID lockId)

Open the store connection, and acquire a lock on the store.

Parameters:

lockId - Lock Id.

Applies to