public class HARootBlockRequest extends Object implements IHARootBlockRequest, Serializable
Constructor and Description |
---|
HARootBlockRequest(UUID storeUUID)
Create a non-blocking request (this is the historical behavior).
|
HARootBlockRequest(UUID storeUUID,
boolean isNonBlocking) |
Modifier and Type | Method and Description |
---|---|
UUID |
getStoreUUID()
The
UUID of the journal whose root block will be returned
(optional, defaults to the current Journal). |
boolean |
isNonBlocking()
When
true the request should be non-blocking. |
public HARootBlockRequest(UUID storeUUID)
storeUUID
- The store UUID (optional).public HARootBlockRequest(UUID storeUUID, boolean isNonBlocking)
storeUUID
- The store UUID (optional).isNonBlocking
- true
iff the request should be non-blocking.public UUID getStoreUUID()
IHARootBlockRequest
UUID
of the journal whose root block will be returned
(optional, defaults to the current Journal).
Note: This parameter is intended for scale-out if there is a need to fetch the root block of a historical journal (versus the live journal).
getStoreUUID
in interface IHARootBlockRequest
public boolean isNonBlocking()
IHARootBlockRequest
true
the request should be non-blocking. Otherwise the
request should obtain the lock that guards the update of the root block
in the commit protocol such that the caller can not observe a root block
that has been updated but where the commit protocol is still in its
critical section.
Note: The non-blocking form of the request is used in some context where the avoidence of a deadlock is necessary. The blocking form is used in some contexts where we need to await a specific commit point on the service (typically under test suite control).
isNonBlocking
in interface IHARootBlockRequest
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.