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

net.oauth2.client.RetryPolicy Maven / Gradle / Ivy

The newest version!
/* 
 * Copyright (c) 2017 Georgi Pavlov ([email protected]).
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the MIT license which accompanies 
 * this distribution, and is available at 
 * https://github.com/tengia/oauth-2/blob/master/LICENSE
 */

package net.oauth2.client;

/**
 * Models a retry policy in fetching tokens within continuous operations for OAuth token provisioning.   
 *
 */
public interface RetryPolicy {
	long periodBetweenRetries();

	long maxRetries();

	boolean onException(Throwable t);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy