All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.eventprocessorhost.LeaseLostException Maven / Gradle / Ivy

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.microsoft.azure.eventprocessorhost;

public class LeaseLostException extends Exception {
    private static final long serialVersionUID = -4625001822439809869L;

    private final transient BaseLease lease;

    LeaseLostException(BaseLease lease, Throwable cause) {
        super(null, cause);
        this.lease = lease;
    }

    LeaseLostException(BaseLease lease, String message) {
        super(message, null);
        this.lease = lease;
    }

    // We don't want to expose Lease to the public.
    public String getPartitionId() {
        return this.lease.getPartitionId();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy