Share this page

# LrJposChannel.getSoLingerSeconds

Gets the number of seconds set for the SoLinger option (LrJposChannel.setSoLinger).

`public static int getSoLingerSeconds()`

## Return values

This function returns an integer that represents the number of seconds set for the SoLinger option.

## Example

Copy code

    public void soLinger() {

            if (LrJposChannel.isSoLingerOn()) {
                int sec = LrJposChannel.getSoLingerSeconds();
                lr.output_message("SoLinger option is ON and set for " + sec + " seconds");
            }
            else {
                LrJposChannel.setSoLinger(true, 3);
                lr.output_message("SoLinger option is OFF");
            }
    }

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: