public UnsignedIntegerEncoding getEncoding(final UnsignedInteger val) { int i = val.intValue(); return i == 0 ? _zeroUnsignedIntegerEncoding : (i <= 255) ? _smallUnsignedIntegerEncoding : _unsignedIntegerEncoding; }
public UnsignedIntegerEncoding getEncoding(final UnsignedInteger val) { int i = val.intValue(); return i == 0 ? _zeroUnsignedIntegerEncoding : (i >= 0 && i <= 255) ? _smallUnsignedIntegerEncoding : _unsignedIntegerEncoding; }
public void freeLocalHandle(UnsignedInteger handle) { _localHandleMap[handle.intValue()] = null; }
public UnsignedIntegerEncoding getEncoding(final UnsignedInteger val) { int i = val.intValue(); return i == 0 ? _zeroUnsignedIntegerEncoding : (i >= 0 && i <= 255) ? _smallUnsignedIntegerEncoding : _unsignedIntegerEncoding; }
public TransportLink getLinkFromRemoteHandle(UnsignedInteger handle) { return _remoteHandleMap[handle.intValue()]; }
public void addLinkLocalHandle(TransportLink link, UnsignedInteger localhandle) { _localHandleMap[localhandle.intValue()] = link; }
public void freeRemoteHandle(UnsignedInteger handle) { _remoteHandleMap[handle.intValue()] = null; }
public UnsignedIntegerEncoding getEncoding(final UnsignedInteger val) { int i = val.intValue(); return i == 0 ? _zeroUnsignedIntegerEncoding : (i <= 255) ? _smallUnsignedIntegerEncoding : _unsignedIntegerEncoding; }
public static TerminusDurability get(UnsignedInteger value) { switch (value.intValue()) { case 0: return NONE; case 1: return CONFIGURATION; case 2: return UNSETTLED_STATE; } throw new IllegalArgumentException("Unknown TerminusDurablity: " + value); }
public static TerminusDurability get(UnsignedInteger value) { switch (value.intValue()) { case 0: return NONE; case 1: return CONFIGURATION; case 2: return UNSETTLED_STATE; } throw new IllegalArgumentException("Unknown TerminusDurablity: " + value); }
@Override public int getGroupSequence() { if (properties != null) { UnsignedInteger groupSeqUint = properties.getGroupSequence(); if (groupSeqUint != null) { // This wraps it into the negative int range if uint is over 2^31-1 return groupSeqUint.intValue(); } } return 0; }
@Override public int getGroupSequence() { if (properties != null) { UnsignedInteger groupSeqUint = properties.getGroupSequence(); if (groupSeqUint != null) { // This wraps it into the negative int range if uint is over 2^31-1 return groupSeqUint.intValue(); } } return 0; }
public void addCredit(int credits) { _linkCredit = UnsignedInteger.valueOf(_linkCredit.intValue() + credits); }
@Override public long getGroupSequence() { return (_properties == null || _properties.getGroupSequence() == null) ? 0l : _properties.getGroupSequence().intValue(); }
@Override public long getGroupSequence() { return (_properties == null || _properties.getGroupSequence() == null) ? 0l : _properties.getGroupSequence().intValue(); }
@Override public long getGroupSequence() { return (_properties == null || _properties.getGroupSequence() == null) ? 0l : _properties.getGroupSequence().intValue(); }
public void writeValue(final UnsignedInteger val) { getEncoder().writeRaw((byte)val.intValue()); }
@Override public long getGroupSequence() { return (_properties == null || _properties.getGroupSequence() == null) ? 0l : _properties.getGroupSequence().intValue(); }
public void writeValue(final UnsignedInteger val) { getEncoder().writeRaw(val.intValue()); }
@Override public int getGroupSequence() { ensureMessageDataScanned(); if (properties != null && properties.getGroupSequence() != null) { return properties.getGroupSequence().intValue(); } else { return 0; } }