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 e6ba271 commit 224bbc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -367,13 +367,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 @@ -63,7 +63,7 @@ public interface ReleaseUpdateCallbackType extends Callback {

public static native int SetReleaseChannel(String 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 224bbc2

Please sign in to comment.