com.microsoft.durabletask.PurgeResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of durabletask-client Show documentation
Show all versions of durabletask-client Show documentation
This package contains classes and interfaces for building Durable Task orchestrations in Java.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.durabletask;
/**
* Class representing the results of an orchestration state purge operation.
*
* Orchestration state can be purged using any of the {@link DurableTaskClient#purgeInstances} method overloads.
*/
public final class PurgeResult {
private final int deletedInstanceCount;
PurgeResult(int deletedInstanceCount) {
this.deletedInstanceCount = deletedInstanceCount;
}
/**
* Gets the number of purged orchestration instances.
* @return the number of purged orchestration instances
*/
public int getDeletedInstanceCount() {
return this.deletedInstanceCount;
}
}