File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
src/main/java/com/cryptlex/lexfloatclient Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -387,6 +387,21 @@ public static int GetFloatingClientMeterAttributeUses(String name) throws LexFlo
387
387
throw new LexFloatClientException (status );
388
388
}
389
389
390
+ /**
391
+ * Sends the request to lease the license from the LexFloatServer for offline usage.
392
+ * The maximum value of lease duration is configured in the config.yml of LexFloatServer.
393
+ *
394
+ * @param leaseDuration value of the lease duration.
395
+ * @throws LexFloatClientException
396
+ */
397
+ public static void RequestOfflineFloatingLicense (int leaseDuration ) throws LexFloatClientException {
398
+ int status ;
399
+ status = LexFloatClientNative .RequestOfflineFloatingLicense (leaseDuration );
400
+ if (LF_OK != status ) {
401
+ throw new LexFloatClientException (status );
402
+ }
403
+ }
404
+
390
405
/**
391
406
* Sends the request to lease the license from the LexFloatServer
392
407
*
Original file line number Diff line number Diff line change @@ -75,6 +75,8 @@ public interface CallbackType extends Callback {
75
75
76
76
public static native int GetFloatingClientMeterAttributeUses (WString name , IntByReference uses );
77
77
78
+ public static native int RequestOfflineFloatingLicense (int leaseDuration );
79
+
78
80
public static native int RequestFloatingLicense ();
79
81
80
82
public static native int DropFloatingLicense ();
You can’t perform that action at this time.
0 commit comments