P
- Type of path (subtree identifier), which represents location in
treeD
- Type of data (payload), which represents data payloadpublic interface AsyncConfigurationCommitHandler<P extends org.opendaylight.yangtools.concepts.Path<P>,D>
Client-supplied implementation of commit handler for subtree, which is responsible for processing CAN-COMMIT phase of three-phase commit protocol and return CommitCohort, which provides access to additional transitions such as PRE-COMMIT, COMMIT and ABORT.
Modifier and Type | Interface and Description |
---|---|
static interface |
AsyncConfigurationCommitHandler.ConfigurationCommitRequest<P extends org.opendaylight.yangtools.concepts.Path<P>,D>
Commit Request as was submitted by client code
|
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.CheckedFuture<AsyncConfigurationCommitCohort<P,D>,DataValidationFailedException> |
canCommit(AsyncConfigurationCommitHandler.ConfigurationCommitRequest<P,D> request)
Requests a can commit phase
|
com.google.common.util.concurrent.CheckedFuture<AsyncConfigurationCommitCohort<P,D>,DataValidationFailedException> canCommit(AsyncConfigurationCommitHandler.ConfigurationCommitRequest<P,D> request)
Implementations SHOULD NOT do any blocking operation during processing this callback. Implementation Notes
request
object for any data related accessCheckedFuture
object.CheckedFuture.checkedGet()
on returned future MUST
return AsyncConfigurationCommitCohort
associated with request.CheckedFuture.checkedGet()
must throw instance
of DataValidationFailedException
with human readable explanaition of error condition.
request
- Commit Request submitted by client, which contains
information about modifications and read-only view as
if transaction happened.AsyncConfigurationCommitCohort
associated with submitted request, if can commit phase is
successful, if can commit was unsuccessful, future must fail with
TransactionCommitFailedException
exception.Copyright © 2019 OpenDaylight. All rights reserved.