@Test public void testGetParentId() { JmsConsumerId id1 = new JmsConsumerId(firstId, 1); assertSame(firstId, id1.getParentId()); JmsConsumerId id2 = new JmsConsumerId(firstId.getConnectionId(), 1, 1); assertEquals(firstId, id2.getParentId()); }
public JmsSessionId getParentId() { if (parentId == null) { parentId = new JmsSessionId(this); } return parentId; }
JmsConsumerId extends JmsAbstractResourceId implements Comparable<JmsConsumerId> { public JmsSessionId getParentId() { if (parentId == null) { parentId = new JmsSessionId(this); } return parentId; } }
JmsConsumerId extends JmsAbstractResourceId implements Comparable<JmsConsumerId> { public JmsSessionId getParentId() { if (parentId == null) { parentId = new JmsSessionId(this); } return parentId; } JmsConsumerId(String connectionId, long sessionId, long consumerId);  JmsConsumerId(JmsSessionId sessionId, long consumerId);  JmsConsumerId(JmsConsumerId consumerId);  JmsConsumerId(String consumerKey); }
JmsConsumerId extends JmsAbstractResourceId implements Comparable<JmsConsumerId> { public JmsSessionId getParentId() { if (parentId == null) { parentId = new JmsSessionId(this); } return parentId; } JmsConsumerId(String connectionId, long sessionId, long consumerId);  JmsConsumerId(JmsSessionId sessionId, long consumerId);  JmsConsumerId(JmsConsumerId consumerId);  JmsConsumerId(String consumerKey); JmsSessionId getParentId(); String getConnectionId(); long getSessionId(); long getValue(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString(); @Override int compareTo(JmsConsumerId other); }
JmsConsumerId extends JmsAbstractResourceId implements Comparable<JmsConsumerId> { public JmsSessionId getParentId() { if (parentId == null) { parentId = new JmsSessionId(this); } return parentId; } JmsConsumerId(String connectionId, long sessionId, long consumerId);  JmsConsumerId(JmsSessionId sessionId, long consumerId);  JmsConsumerId(JmsConsumerId consumerId);  JmsConsumerId(String consumerKey); JmsSessionId getParentId(); String getConnectionId(); long getSessionId(); long getValue(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString(); @Override int compareTo(JmsConsumerId other);  }