private void lockFileWatchdogUpdate()

in java/main/src/main/java/com/epam/deltix/utilities/ResourceLoader.java [515:528]


    private void lockFileWatchdogUpdate(final boolean force) throws IOException {

        final long now = nanoTime();
        final long elapsed = now - _lockLastUpdateNs;

        if (null != _lockFile && (elapsed > _lockUpdatePeriodNs || force)) {
            _lockLastUpdateNs = now;
            final FileChannel fc = _lockFile.channel();
            fc.position(0);
            fc.write(ByteBuffer.wrap(_dummyBuffer));
            fc.force(true);
            log("LockFile updated");
        }
    }