Class CTSOptions
Each CTSOption maps to an Option
which will be passed to the backing CTS implementation.
The implementation may or may not be able to support the requested option and if it is unable
to do so, should provide meaningful feedback to the caller.
As such, each CTSOption describes a generic concept which will be implemented in a backing implementation specific way.
- Since:
- 14.0.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Option<TokenFilter>
Signals the CTS to perform an assertion using the providedTokenFilter
before performing the requested operation.Signals to the CTS backing implementation to assert that the CTS entry being updated still has the givenETag
before applying the requested modification to it.Signals to the CTS backing implementation to include the result of an optimistic concurrency ETag in the response for this request.static final Option<CoreTokenField[]>
Signals the CTS to perform a read of a CTS token on delete.Signals the CTS to utilise a pre-registered VLV-index based query, with the provided sort order. -
Method Summary
-
Field Details
-
PRE_DELETE_READ_OPTION
Signals the CTS to perform a read of a CTS token on delete.The value of the option will be used to determine if the token is read on the delete operation.
Applicable for use only with the delete CTS operation.
-
ASSERTION_REQUEST_OPTION
Signals the CTS to perform an assertion using the providedTokenFilter
before performing the requested operation. -
VLV_SORT_ATTRIBUTE
Signals the CTS to utilise a pre-registered VLV-index based query, with the provided sort order. -
ETAG_READ_OPTION
Signals to the CTS backing implementation to include the result of an optimistic concurrency ETag in the response for this request.When this option is provided, any returned
Token
from the CTS will include anETag
value which can be accessed withToken.getETag()
.This ETag instance should be used in a subsequent modification request of the Token to verify that the entire Token has not changed between the read and subsequent modification requests.
Note: The value provided with this
Option
is not used in the read request, only for theETAG_ASSERT_OPTION
option.- See Also:
-
ETAG_ASSERT_OPTION
Signals to the CTS backing implementation to assert that the CTS entry being updated still has the givenETag
before applying the requested modification to it.This ETag is acquired by using the
ETAG_READ_OPTION
option on a previous request.If the ETag has changed in the mean time, then the CTS will provide the caller with an exception which allows them to decide how to respond to this failure.
- See Also:
-
-
Method Details
-
singleOption
-