public static SoleConnectionEnforcementPolicy valueOf(Object obj) { if (obj instanceof UnsignedInteger) { UnsignedInteger val = (UnsignedInteger) obj; if (REFUSE_CONNECTION._val.equals(val)) { return REFUSE_CONNECTION; } if (CLOSE_EXISTING._val.equals(val)) { return CLOSE_EXISTING; } } final String message = String.format("Cannot convert '%s' into 'sole-connection-enforcement-policy'", obj); throw new IllegalArgumentException(message); }
public static SoleConnectionDetectionPolicy valueOf(Object obj) { if (obj instanceof UnsignedInteger) { UnsignedInteger val = (UnsignedInteger) obj; if (STRONG._val.equals(val)) { return STRONG; } if (WEAK._val.equals(val)) { return WEAK; } } final String message = String.format("Cannot convert '%s' into 'sole-connection-detection-policy'", obj); throw new IllegalArgumentException(message); }
public static TerminusDurability valueOf(Object obj) { if (obj instanceof UnsignedInteger) { UnsignedInteger val = (UnsignedInteger) obj; if (NONE._val.equals(val)) { return NONE; } if (CONFIGURATION._val.equals(val)) { return CONFIGURATION; } if (UNSETTLED_STATE._val.equals(val)) { return UNSETTLED_STATE; } } final String message = String.format("Cannot convert '%s' into 'terminus-durability'", obj); throw new IllegalArgumentException(message); }
if (_timeout != null ? !_timeout.equals(target._timeout) : target._timeout != null)
if (!end.add(UnsignedInteger.ONE).equals(deliveryId))
if (_timeout != null ? !_timeout.equals(source._timeout) : source._timeout != null)
( Boolean.TRUE.equals(flow.getDrain()) && getLinkCredit().equals(UnsignedInteger.ZERO));