public class ShutdownHooks extends Object
| Constructor and Description |
|---|
ShutdownHooks(FloatingLicenseService service,
FloatingConfiguration configuration)
Constructor for creating the ShutdownHooks object in charge of handling the state of activated
licenses.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFuture(com.licensespring.model.LicenseIdentity identity,
ScheduledFuture future)
Adds new future for the given identity key.
|
void |
addIdentity(com.licensespring.model.LicenseIdentity identity)
Adds new identity.
|
void |
createShutdownHook()
Creates new shutdown hook.
|
void |
removeFuture(com.licensespring.model.LicenseIdentity identity)
Removes given future for the given identity key.
|
void |
removeIdentity(com.licensespring.model.LicenseIdentity identity)
Removes given identity.
|
void |
removeOnBorrowExpiredHook(com.licensespring.model.LicenseIdentity identity,
boolean mayInterruptIfRunning)
Removes onBorrowExpired hook for the given identity key.
|
void |
setOnBorrowExpiredHook(com.licensespring.model.LicenseIdentity identity,
ScheduledFuture<?> hook)
Sets onBorrowExpired hook for the given identity key.
|
public ShutdownHooks(FloatingLicenseService service, FloatingConfiguration configuration)
service - the Floating service to use for releasing the licenseconfiguration - the Floating Configurationpublic void createShutdownHook()
public void addIdentity(com.licensespring.model.LicenseIdentity identity)
identity - identitypublic void addFuture(com.licensespring.model.LicenseIdentity identity,
ScheduledFuture future)
identity - identityfuture - futurepublic void removeFuture(com.licensespring.model.LicenseIdentity identity)
identity - identitypublic void setOnBorrowExpiredHook(com.licensespring.model.LicenseIdentity identity,
ScheduledFuture<?> hook)
identity - identityhook - hookpublic void removeOnBorrowExpiredHook(com.licensespring.model.LicenseIdentity identity,
boolean mayInterruptIfRunning)
identity - identitypublic void removeIdentity(com.licensespring.model.LicenseIdentity identity)
identity - identityCopyright © 2025 Cense Data Inc.. All rights reserved.