Search in sources :

Example 1 with LinkStoreUpdaterImpl

use of org.apache.qpid.server.protocol.v1_0.store.LinkStoreUpdaterImpl in project qpid-broker-j by apache.

the class LinkRegistryImpl method open.

@Override
public void open() {
    Collection<LinkDefinition<Source, Target>> links = _linkStore.openAndLoad(new LinkStoreUpdaterImpl());
    for (LinkDefinition<? extends BaseSource, ? extends BaseTarget> link : links) {
        ConcurrentMap<LinkKey, Link_1_0<? extends BaseSource, ? extends BaseTarget>> linkRegistry = getLinkRegistry(link.getRole());
        linkRegistry.put(new LinkKey(link), new LinkImpl<>(link, this));
    }
}
Also used : LinkStoreUpdaterImpl(org.apache.qpid.server.protocol.v1_0.store.LinkStoreUpdaterImpl) BaseSource(org.apache.qpid.server.protocol.v1_0.type.BaseSource) BaseTarget(org.apache.qpid.server.protocol.v1_0.type.BaseTarget)

Aggregations

LinkStoreUpdaterImpl (org.apache.qpid.server.protocol.v1_0.store.LinkStoreUpdaterImpl)1 BaseSource (org.apache.qpid.server.protocol.v1_0.type.BaseSource)1 BaseTarget (org.apache.qpid.server.protocol.v1_0.type.BaseTarget)1