@Override public String toString() { return "Target{" + "address='" + getAddress() + '\'' + ", durable=" + getDurable() + ", expiryPolicy=" + getExpiryPolicy() + ", timeout=" + getTimeout() + ", dynamic=" + getDynamic() + ", dynamicNodeProperties=" + getDynamicNodeProperties() + ", capabilities=" + (getCapabilities() == null ? null : Arrays.asList(getCapabilities())) + '}'; }
@Override public String toString() { return "Target{" + "address='" + getAddress() + '\'' + ", durable=" + getDurable() + ", expiryPolicy=" + getExpiryPolicy() + ", timeout=" + getTimeout() + ", dynamic=" + getDynamic() + ", dynamicNodeProperties=" + getDynamicNodeProperties() + ", capabilities=" + (getCapabilities() == null ? null : Arrays.asList(getCapabilities())) + '}'; }
@Override public String toString() { return "Target{" + "address='" + getAddress() + '\'' + ", durable=" + getDurable() + ", expiryPolicy=" + getExpiryPolicy() + ", timeout=" + getTimeout() + ", dynamic=" + getDynamic() + ", dynamicNodeProperties=" + getDynamicNodeProperties() + ", capabilities=" + (getCapabilities() == null ? null : Arrays.asList(getCapabilities())) + '}'; } }
public Object get(final int index) { switch(index) { case 0: return _impl.getAddress(); case 1: return _impl.getDurable().getValue(); case 2: return _impl.getExpiryPolicy().getPolicy(); case 3: return _impl.getTimeout(); case 4: return _impl.getDynamic(); case 5: return _impl.getDynamicNodeProperties(); case 6: return _impl.getCapabilities(); } throw new IllegalStateException("Unknown index " + index); }
public Object get(final int index) { switch(index) { case 0: return _impl.getAddress(); case 1: return _impl.getDurable().getValue(); case 2: return _impl.getExpiryPolicy().getPolicy(); case 3: return _impl.getTimeout(); case 4: return _impl.getDynamic(); case 5: return _impl.getDynamicNodeProperties(); case 6: return _impl.getCapabilities(); } throw new IllegalStateException("Unknown index " + index); }
public Object get(final int index) { switch(index) { case 0: return _impl.getAddress(); case 1: return _impl.getDurable().getValue(); case 2: return _impl.getExpiryPolicy().getPolicy(); case 3: return _impl.getTimeout(); case 4: return _impl.getDynamic(); case 5: return _impl.getDynamicNodeProperties(); case 6: return _impl.getCapabilities(); } throw new IllegalStateException("Unknown index " + index); }
public Object get(final int index) { switch(index) { case 0: return _impl.getAddress(); case 1: return _impl.getDurable().getValue(); case 2: return _impl.getExpiryPolicy().getPolicy(); case 3: return _impl.getTimeout(); case 4: return _impl.getDynamic(); case 5: return _impl.getDynamicNodeProperties(); case 6: return _impl.getCapabilities(); } throw new IllegalStateException("Unknown index " + index); }
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; } }
@SuppressWarnings("unchecked") protected void doTestCreateDynamicSender(boolean topic) throws Exception { Target target = createDynamicTarget(topic); AmqpClient client = createAmqpClient(); AmqpConnection connection = addConnection(client.connect()); AmqpSession session = connection.createSession(); AmqpSender sender = session.createSender(target); assertNotNull(sender); Target remoteTarget = (Target) sender.getEndpoint().getRemoteTarget(); assertTrue(remoteTarget.getDynamic()); assertTrue(remoteTarget.getDurable().equals(TerminusDurability.NONE)); assertTrue(remoteTarget.getExpiryPolicy().equals(TerminusExpiryPolicy.LINK_DETACH)); // Check the dynamic node lifetime-policy Map<Symbol, Object> dynamicNodeProperties = remoteTarget.getDynamicNodeProperties(); assertTrue(dynamicNodeProperties.containsKey(LIFETIME_POLICY)); assertEquals(DeleteOnClose.getInstance(), dynamicNodeProperties.get(LIFETIME_POLICY)); Queue queueView = getProxyToQueue(remoteTarget.getAddress()); assertNotNull(queueView); connection.close(); }