Skip to content

Commit 93e2c7a

Browse files
committed
refactor: update data type to long for activationLeaseDuration setter
1 parent 93cd85b commit 93e2c7a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/main/java/com/cryptlex/lexactivator/LexActivator.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,13 +370,14 @@ public static void SetReleaseChannel(String releaseChannel) throws LexActivatorE
370370
}
371371

372372
/**
373-
* Sets the lease duration for the activation.
373+
* Sets the lease duration for the activation. The activation lease duration
374+
* is honoured when the allow client lease duration property is enabled.
374375
*
375-
* @param leaseDuration
376+
* @param leaseDuration value of the lease duration. A value of -1 indicates unlimited lease duration.
376377
*
377378
* @throws LexActivatorException
378379
*/
379-
public static void SetActivationLeaseDuration(int leaseDuration) throws LexActivatorException {
380+
public static void SetActivationLeaseDuration(long leaseDuration) throws LexActivatorException {
380381
int status;
381382
status = LexActivatorNative.SetActivationLeaseDuration(leaseDuration);
382383
if (LA_OK != status) {

src/main/java/com/cryptlex/lexactivator/LexActivatorNative.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public interface ReleaseUpdateCallbackTypeA extends Callback {
8989

9090
public static native int SetReleaseChannel(WString releaseChannel);
9191

92-
public static native int SetActivationLeaseDuration(int leaseDuration);
92+
public static native int SetActivationLeaseDuration(long leaseDuration);
9393

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

0 commit comments

Comments
 (0)