public void setTimeToLive(UnsignedInteger value) { if (value == null || UnsignedInteger.ZERO.equals(value)) { modified &= ~TIME_TO_LIVE; timeToLive = null; } else { modified |= TIME_TO_LIVE; timeToLive = value; } }
public void setTimeToLive(UnsignedInteger value) { if (value == null || UnsignedInteger.ZERO.equals(value)) { modified &= ~TIME_TO_LIVE; timeToLive = null; } else { modified |= TIME_TO_LIVE; timeToLive = value; } }
public void setDeliveryCount(UnsignedInteger value) { if (value == null || UnsignedInteger.ZERO.equals(value)) { modified &= ~DELIVERY_COUNT; deliveryCount = null; } else { modified |= DELIVERY_COUNT; deliveryCount = value; } }
public void setDeliveryCount(UnsignedInteger value) { if (value == null || UnsignedInteger.ZERO.equals(value)) { modified &= ~DELIVERY_COUNT; deliveryCount = null; } else { modified |= DELIVERY_COUNT; deliveryCount = value; } }
public int size() { return _begin.getProperties() != null ? 8 : _begin.getDesiredCapabilities() != null ? 7 : _begin.getOfferedCapabilities() != null ? 6 : (_begin.getHandleMax() != null && !_begin.getHandleMax().equals(UnsignedInteger.MAX_VALUE)) ? 5 : 4; } }
public int size() { return _begin.getProperties() != null ? 8 : _begin.getDesiredCapabilities() != null ? 7 : _begin.getOfferedCapabilities() != null ? 6 : (_begin.getHandleMax() != null && !_begin.getHandleMax().equals(UnsignedInteger.MAX_VALUE)) ? 5 : 4; } }
public int size() { return _begin.getProperties() != null ? 8 : _begin.getDesiredCapabilities() != null ? 7 : _begin.getOfferedCapabilities() != null ? 6 : (_begin.getHandleMax() != null && !_begin.getHandleMax().equals(UnsignedInteger.MAX_VALUE)) ? 5 : 4; } }
public int recv(final byte[] bytes, int offset, int size) { if (_current == null) { throw new IllegalStateException("no current delivery"); } int consumed = _current.recv(bytes, offset, size); if (consumed > 0) { getSession().incrementIncomingBytes(-consumed); if (getSession().getTransportSession().getIncomingWindowSize().equals(UnsignedInteger.ZERO)) { modified(); } } return consumed; }
public int size() { return _begin.getProperties() != null ? 8 : _begin.getDesiredCapabilities() != null ? 7 : _begin.getOfferedCapabilities() != null ? 6 : (_begin.getHandleMax() != null && !_begin.getHandleMax().equals(UnsignedInteger.MAX_VALUE)) ? 5 : 4; } }
@Override public int recv(final WritableBuffer buffer) { if (_current == null) { throw new IllegalStateException("no current delivery"); } int consumed = _current.recv(buffer); if (consumed > 0) { getSession().incrementIncomingBytes(-consumed); if (getSession().getTransportSession().getIncomingWindowSize().equals(UnsignedInteger.ZERO)) { modified(); } } return consumed; }
@Override public int recv(final byte[] bytes, int offset, int size) { if (_current == null) { throw new IllegalStateException("no current delivery"); } int consumed = _current.recv(bytes, offset, size); if (consumed > 0) { getSession().incrementIncomingBytes(-consumed); if (getSession().getTransportSession().getIncomingWindowSize().equals(UnsignedInteger.ZERO)) { modified(); } } return consumed; }
public int recv(final byte[] bytes, int offset, int size) { if (_current == null) { throw new IllegalStateException("no current delivery"); } int consumed = _current.recv(bytes, offset, size); if (consumed > 0) { getSession().incrementIncomingBytes(-consumed); if (getSession().getTransportSession().getIncomingWindowSize().equals(UnsignedInteger.ZERO)) { modified(); } } return consumed; }
@Override public ReadableBuffer recv() { if (_current == null) { throw new IllegalStateException("no current delivery"); } ReadableBuffer consumed = _current.recv(); if (consumed.remaining() > 0) { getSession().incrementIncomingBytes(-consumed.remaining()); if (getSession().getTransportSession().getIncomingWindowSize().equals(UnsignedInteger.ZERO)) { modified(); } } return consumed; }
public int size() { return _open.getProperties() != null ? 10 : _open.getDesiredCapabilities() != null ? 9 : _open.getOfferedCapabilities() != null ? 8 : _open.getIncomingLocales() != null ? 7 : _open.getOutgoingLocales() != null ? 6 : _open.getIdleTimeOut() != null ? 5 : (_open.getChannelMax() != null && !_open.getChannelMax().equals(UnsignedShort.MAX_VALUE)) ? 4 : (_open.getMaxFrameSize() != null && !_open.getMaxFrameSize().equals(UnsignedInteger.MAX_VALUE)) ? 3 : _open.getHostname() != null ? 2 : 1; }
public int size() { return _impl.getCapabilities() != null ? 7 : _impl.getDynamicNodeProperties() != null ? 6 : _impl.getDynamic() ? 5 : (_impl.getTimeout() != null && !_impl.getTimeout().equals(UnsignedInteger.ZERO)) ? 4 : !_impl.getExpiryPolicy().equals(TerminusExpiryPolicy.SESSION_END) ? 3 : !_impl.getDurable().equals(TerminusDurability.NONE) ? 2 : _impl.getAddress() != null ? 1 : 0; } }
public int size() { return _impl.getCapabilities() != null ? 7 : _impl.getDynamicNodeProperties() != null ? 6 : _impl.getDynamic() ? 5 : (_impl.getTimeout() != null && !_impl.getTimeout().equals(UnsignedInteger.ZERO)) ? 4 : !_impl.getExpiryPolicy().equals(TerminusExpiryPolicy.SESSION_END) ? 3 : !_impl.getDurable().equals(TerminusDurability.NONE) ? 2 : _impl.getAddress() != null ? 1 : 0; } }
public int size() { return _impl.getCapabilities() != null ? 7 : _impl.getDynamicNodeProperties() != null ? 6 : _impl.getDynamic() ? 5 : (_impl.getTimeout() != null && !_impl.getTimeout().equals(UnsignedInteger.ZERO)) ? 4 : !_impl.getExpiryPolicy().equals(TerminusExpiryPolicy.SESSION_END) ? 3 : !_impl.getDurable().equals(TerminusDurability.NONE) ? 2 : _impl.getAddress() != null ? 1 : 0; } }
public int size() { return _impl.getCapabilities() != null ? 7 : _impl.getDynamicNodeProperties() != null ? 6 : _impl.getDynamic() ? 5 : (_impl.getTimeout() != null && !_impl.getTimeout().equals(UnsignedInteger.ZERO)) ? 4 : !_impl.getExpiryPolicy().equals(TerminusExpiryPolicy.SESSION_END) ? 3 : !_impl.getDurable().equals(TerminusDurability.NONE) ? 2 : _impl.getAddress() != null ? 1 : 0; } }
public int size() { return _open.getProperties() != null ? 10 : _open.getDesiredCapabilities() != null ? 9 : _open.getOfferedCapabilities() != null ? 8 : _open.getIncomingLocales() != null ? 7 : _open.getOutgoingLocales() != null ? 6 : _open.getIdleTimeOut() != null ? 5 : (_open.getChannelMax() != null && !_open.getChannelMax().equals(UnsignedShort.MAX_VALUE)) ? 4 : (_open.getMaxFrameSize() != null && !_open.getMaxFrameSize().equals(UnsignedInteger.MAX_VALUE)) ? 3 : _open.getHostname() != null ? 2 : 1; }
@Override public boolean advance() { DeliveryImpl current = current(); if(current != null) { current.setDone(); } final boolean advance = super.advance(); if(advance) { decrementQueued(); decrementCredit(); getSession().incrementIncomingBytes(-current.pending()); getSession().incrementIncomingDeliveries(-1); if (getSession().getTransportSession().getIncomingWindowSize().equals(UnsignedInteger.ZERO)) { modified(); } } return advance; }