Search in sources :

Example 1 with ProvidedPartitionableObjectStoreWrapper

use of org.mule.runtime.core.internal.util.store.ProvidedPartitionableObjectStoreWrapper in project mule by mulesoft.

the class AbstractAggregator method initEventGroupsObjectStore.

protected void initEventGroupsObjectStore() throws InitialisationException {
    try {
        if (eventGroupsObjectStore == null) {
            // TODO: Delete ProvidedObjectStoreWrapper if not needed when moving this to compatibility
            eventGroupsObjectStore = new ProvidedPartitionableObjectStoreWrapper(null, internalEventsGroupsObjectStoreSupplier());
        }
        eventGroupsObjectStore.open(storePrefix + ".expiredAndDispatchedGroups");
        eventGroupsObjectStore.open(storePrefix + ".eventGroups");
    } catch (MuleRuntimeException | ObjectStoreException e) {
        throw new InitialisationException(e, this);
    }
}
Also used : ObjectStoreException(org.mule.runtime.api.store.ObjectStoreException) ProvidedPartitionableObjectStoreWrapper(org.mule.runtime.core.internal.util.store.ProvidedPartitionableObjectStoreWrapper) MuleRuntimeException(org.mule.runtime.api.exception.MuleRuntimeException) InitialisationException(org.mule.runtime.api.lifecycle.InitialisationException)

Aggregations

MuleRuntimeException (org.mule.runtime.api.exception.MuleRuntimeException)1 InitialisationException (org.mule.runtime.api.lifecycle.InitialisationException)1 ObjectStoreException (org.mule.runtime.api.store.ObjectStoreException)1 ProvidedPartitionableObjectStoreWrapper (org.mule.runtime.core.internal.util.store.ProvidedPartitionableObjectStoreWrapper)1