Java Code Examples for org.apache.activemq.artemis.api.core.SimpleString#StringSimpleStringPool
The following examples show how to use
org.apache.activemq.artemis.api.core.SimpleString#StringSimpleStringPool .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SimpleStringTest.java From activemq-artemis with Apache License 2.0 | 5 votes |
@Test public void testStringSimpleStringPool() throws Exception { final int capacity = 8; final SimpleString.StringSimpleStringPool pool = new SimpleString.StringSimpleStringPool(capacity); for (int i = 0; i < capacity; i++) { final String s = Integer.toString(i); final SimpleString expectedPooled = pool.getOrCreate(s); Assert.assertSame(expectedPooled, pool.getOrCreate(s)); } }
Example 2
Source File: TypedProperties.java From activemq-artemis with Apache License 2.0 | 4 votes |
public TypedPropertiesStringSimpleStringPools() { this.propertyKeysPool = new SimpleString.StringSimpleStringPool(); this.propertyValuesPool = new SimpleString.StringSimpleStringPool(); }
Example 3
Source File: TypedProperties.java From activemq-artemis with Apache License 2.0 | 4 votes |
public TypedPropertiesStringSimpleStringPools(int keyPoolCapacity, int valuePoolCapacity) { this.propertyKeysPool = new SimpleString.StringSimpleStringPool(keyPoolCapacity); this.propertyValuesPool = new SimpleString.StringSimpleStringPool(valuePoolCapacity); }
Example 4
Source File: TypedProperties.java From activemq-artemis with Apache License 2.0 | 4 votes |
public SimpleString.StringSimpleStringPool getPropertyKeysPool() { return propertyKeysPool; }
Example 5
Source File: TypedProperties.java From activemq-artemis with Apache License 2.0 | 4 votes |
public SimpleString.StringSimpleStringPool getPropertyValuesPool() { return propertyValuesPool; }
Example 6
Source File: CoreMessageObjectPools.java From activemq-artemis with Apache License 2.0 | 4 votes |
public SimpleString.StringSimpleStringPool getAddressStringSimpleStringPool() { return addressStringSimpleStringPool.get(); }
Example 7
Source File: CoreMessageObjectPools.java From activemq-artemis with Apache License 2.0 | 4 votes |
public SimpleString.StringSimpleStringPool getGroupIdStringSimpleStringPool() { return groupIdStringSimpleStringPool.get(); }
Example 8
Source File: CoreMessage.java From activemq-artemis with Apache License 2.0 | 4 votes |
private SimpleString.StringSimpleStringPool getPropertyKeysPool() { return coreMessageObjectPools == null ? null : coreMessageObjectPools.getPropertiesStringSimpleStringPools().getPropertyKeysPool(); }
Example 9
Source File: CoreMessage.java From activemq-artemis with Apache License 2.0 | 4 votes |
private SimpleString.StringSimpleStringPool getPropertyValuesPool() { return coreMessageObjectPools == null ? null : coreMessageObjectPools.getPropertiesStringSimpleStringPools().getPropertyValuesPool(); }
Example 10
Source File: AMQPMessage.java From activemq-artemis with Apache License 2.0 | 4 votes |
protected SimpleString.StringSimpleStringPool getPropertyKeysPool() { return coreMessageObjectPools == null ? null : coreMessageObjectPools.getPropertiesStringSimpleStringPools().getPropertyKeysPool(); }
Example 11
Source File: AMQPMessage.java From activemq-artemis with Apache License 2.0 | 4 votes |
protected SimpleString.StringSimpleStringPool getPropertyValuesPool() { return coreMessageObjectPools == null ? null : coreMessageObjectPools.getPropertiesStringSimpleStringPools().getPropertyValuesPool(); }