Skip to content

Commit

Permalink
refactor: update data type to long for activationLeaseDuration setter
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-kemsan committed Jul 31, 2024
1 parent 93cd85b commit 93e2c7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/main/java/com/cryptlex/lexactivator/LexActivator.java
Original file line number Diff line number Diff line change
Expand Up @@ -370,13 +370,14 @@ public static void SetReleaseChannel(String releaseChannel) throws LexActivatorE
}

/**
* Sets the lease duration for the activation.
* Sets the lease duration for the activation. The activation lease duration
* is honoured when the allow client lease duration property is enabled.
*
* @param leaseDuration
* @param leaseDuration value of the lease duration. A value of -1 indicates unlimited lease duration.
*
* @throws LexActivatorException
*/
public static void SetActivationLeaseDuration(int leaseDuration) throws LexActivatorException {
public static void SetActivationLeaseDuration(long leaseDuration) throws LexActivatorException {
int status;
status = LexActivatorNative.SetActivationLeaseDuration(leaseDuration);
if (LA_OK != status) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public interface ReleaseUpdateCallbackTypeA extends Callback {

public static native int SetReleaseChannel(WString releaseChannel);

public static native int SetActivationLeaseDuration(int leaseDuration);
public static native int SetActivationLeaseDuration(long leaseDuration);

public static native int SetOfflineActivationRequestMeterAttributeUses(String name, int uses);

Expand Down

0 comments on commit 93e2c7a

Please sign in to comment.