@Test public void testSetName() { String name = "a test name"; QueueConfig queueConfig = new QueueConfig().setName(name); assertEquals(name, queueConfig.getName()); assertEquals("q:" + name, queueConfig.getBackingMapRef()); queueConfig.setBackingMapRef("backingMap"); assertEquals("backingMap", queueConfig.getBackingMapRef()); }
public QueueConfig setName(String name) { this.name = name; if (backingMapRef == null) { backingMapRef = "q:" + name; } return this; }
QueueConfig implements DataSerializable { public QueueConfig setName(String name) { this.name = name; if (backingMapRef == null) { backingMapRef = "q:" + name; } return this; } }
QueueConfig implements DataSerializable { public QueueConfig setName(String name) { this.name = name; if (backingMapRef == null) { backingMapRef = "q:" + name; } return this; } QueueConfig();  QueueConfig(QueueConfig config); }
QueueConfig implements DataSerializable { public QueueConfig setName(String name) { this.name = name; if (backingMapRef == null) { backingMapRef = "q:" + name; } return this; } QueueConfig();  QueueConfig(QueueConfig config); String getName(); QueueConfig setName(String name); int getMaxSizePerJVM(); QueueConfig setMaxSizePerJVM(int maxSizePerJVM); String getBackingMapRef(); QueueConfig setBackingMapRef(String backingMapRef); QueueConfig addItemListenerConfig(ItemListenerConfig listenerConfig); List<ItemListenerConfig> getItemListenerConfigs(); void setItemListenerConfigs(List<ItemListenerConfig> listenerConfigs); boolean isCompatible(final QueueConfig queueConfig); void writeData(DataOutput out); void readData(DataInput in); @Override String toString(); }
QueueConfig implements DataSerializable { public QueueConfig setName(String name) { this.name = name; if (backingMapRef == null) { backingMapRef = "q:" + name; } return this; } QueueConfig();  QueueConfig(QueueConfig config); String getName(); QueueConfig setName(String name); int getMaxSizePerJVM(); QueueConfig setMaxSizePerJVM(int maxSizePerJVM); String getBackingMapRef(); QueueConfig setBackingMapRef(String backingMapRef); QueueConfig addItemListenerConfig(ItemListenerConfig listenerConfig); List<ItemListenerConfig> getItemListenerConfigs(); void setItemListenerConfigs(List<ItemListenerConfig> listenerConfigs); boolean isCompatible(final QueueConfig queueConfig); void writeData(DataOutput out); void readData(DataInput in); @Override String toString(); final static int DEFAULT_MAX_SIZE_PER_JVM; }