use of org.apache.activemq.store.PList in project activemq-artemis by apache.
the class FilePendingMessageCursorTestSupport method createBrokerWithTempStoreLimit.
private void createBrokerWithTempStoreLimit() throws Exception {
brokerService = new BrokerService();
brokerService.setUseJmx(false);
SystemUsage usage = brokerService.getSystemUsage();
usage.getTempUsage().setLimit(1025 * 1024 * 15);
// put something in the temp store to on demand initialise it
PList dud = brokerService.getTempDataStore().getPList("dud");
dud.addFirst("A", new ByteSequence("A".getBytes()));
}
Aggregations