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>
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
Commit Request contains list view of created / updated / removed
path and read-only view of proposed client transaction,
which may be used to retrieve modified or referenced data.
|
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
Implementations SHOULD NOT do any blocking operation during
processing this callback.
|
com.google.common.util.concurrent.CheckedFuture<AsyncConfigurationCommitCohort<P,D>,DataValidationFailedException> canCommit(AsyncConfigurationCommitHandler.ConfigurationCommitRequest<P,D> request)
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.