extends TransactionRequest<T> {
private static final long serialVersionUID = 1L;
private final YangInstanceIdentifier path;
+ private final boolean snapshotOnly;
AbstractReadTransactionRequest(final TransactionIdentifier identifier, final long sequence, final ActorRef replyTo,
- final YangInstanceIdentifier path) {
+ final YangInstanceIdentifier path, final boolean snapshotOnly) {
super(identifier, sequence, replyTo);
this.path = Preconditions.checkNotNull(path);
+ this.snapshotOnly = snapshotOnly;
}
AbstractReadTransactionRequest(final T request, final ABIVersion version) {
super(request, version);
this.path = request.getPath();
+ this.snapshotOnly = request.isSnapshotOnly();
}
@Nonnull
return path;
}
+ public final boolean isSnapshotOnly() {
+ return snapshotOnly;
+ }
+
@Override
protected ToStringHelper addToStringAttributes(final ToStringHelper toStringHelper) {
return super.addToStringAttributes(toStringHelper).add("path", path);