class ExpiryCheckHandler {

    public static Integer getQueueExpireAfter(MultiMap headers) {
        try {
            final Integer ans = getExpireValue(headers.get(QUEUE_EXPIRE_AFTER_HEADER));
            // Convert -1 to null
            return (ans != null && ans == -1) ? null : ans;
        } catch (NumberFormatException e) {
            // Treat corrupt header same as it were not set at all.
            // This is to keep backward compatibility to previous version of getExpireValue(MultiMap,String).
            return null;
        }
    }

    private  ExpiryCheckHandler();

}