Transpiled version (4664L) is out of date.
static AutoCloseable serverSocketFactory_autoUpdate(IF0<AutoCloseable> enter default null) { temp new CloseablesHolder resources; new FileWatchService watchService; resources.add(watchService); File dir = mkdirs(javaxSecretDir()); watchService.addRecursiveListener(dir, f -> { temp getVar(enter); if (fileNameIs(f, "keystore.p12")) { print("Key store changed, reloading certificates: " + f); serverSocketFactory_botCompanyEtc_update(); } }); print("Watching " + dir + " for keystore changes"); ret resources.takeOut(watchService); }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030471 |
Snippet name: | serverSocketFactory_autoUpdate |
Eternal ID of this version: | #1030471/4 |
Text MD5: | e441de0549953b069883e7de9160bcdf |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-07-10 15:06:31 |
Source code size: | 591 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 228 / 313 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |