Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 565143 - [Passage] floating licensing
added examination certificates to requests, added license lock interface, fixed build failing Signed-off-by: Nikifor Fedorov <zelenyhleb@gmail.com>
- Loading branch information
1 parent
5e30f28
commit 7f1429b
Showing
7 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
....eclipse.passage.lbc.api/src/org/eclipse/passage/lbc/internal/api/BackendLicenseLock.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2020 ArSysOp | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* https://www.eclipse.org/legal/epl-2.0/. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* ArSysOp - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.passage.lbc.internal.api; | ||
|
||
import java.util.function.Supplier; | ||
|
||
import org.eclipse.passage.lic.internal.api.ServiceInvocationResult; | ||
|
||
/** | ||
* @since 1.0 | ||
*/ | ||
public interface BackendLicenseLock { | ||
|
||
// Returns simply a boolean value of license.taken < license.capacity | ||
ServiceInvocationResult<Boolean> canTake(Supplier<String> condition); | ||
|
||
// Decreases condition.taken | ||
ServiceInvocationResult<Boolean> release(Supplier<String> condition); | ||
|
||
// Increases condition.taken | ||
ServiceInvocationResult<Boolean> take(Supplier<String> condition); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters