LrJposChannel.isSoLingerOn

Checks the status of the SoLinger option (LrJposChannel.setSoLinger).

public static boolean isSoLingerOn()

Return values

This function returns true if the SoLinger option is on. Otherwise it returns false.

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");
        }
}