public ComponentPool(Supplier<? extends T> supplier) { this.pool = new Pool<T>(supplier); }
public void allocate(int nb) { this.pool.allocate(nb); }
public void clear() { this.pool.clear(); }
public SemanticTracker borrow(DeploymentConfiguration deploymentConfiguration, String networkName) { SemanticTracker resource = super.pool.borrow(); SemanticFactory.initGenericSemanticTracker( resource, deploymentConfiguration, networkName); return resource; }
/** * {@inheritDoc} */ @Override public Iterator<T> iterator() { return this.pool.iterator(); }
/** * {@inheritDoc} */ @Override public String toString() { return this.pool.toString(); }
public void release(T resource) { this.reset(resource); this.pool.release(resource); }
public SubscribeProxy borrow(DeploymentConfiguration deploymentConfiguration, String registryURL, EventCloudId eventCloudId) throws EventCloudIdNotManaged { SubscribeProxy resource = super.pool.borrow(); ProxyFactory.initGenericSubscribeProxy( resource, deploymentConfiguration, registryURL, eventCloudId); return resource; }
public PublishProxy borrow(DeploymentConfiguration deploymentConfiguration, String registryURL, EventCloudId eventCloudId) throws EventCloudIdNotManaged { PublishProxy resource = super.pool.borrow(); ProxyFactory.initGenericPublishProxy( resource, deploymentConfiguration, registryURL, eventCloudId); return resource; }
public PutGetProxy borrow(DeploymentConfiguration deploymentConfiguration, String registryURL, EventCloudId eventCloudId) throws EventCloudIdNotManaged { PutGetProxy resource = super.pool.borrow(); ProxyFactory.initGenericPutGetProxy( resource, deploymentConfiguration, registryURL, eventCloudId); return resource; }
public SemanticPeer borrow(DeploymentConfiguration deploymentConfiguration, SerializableProvider<? extends StructuredOverlay> overlayProvider) { SemanticPeer resource = super.pool.borrow(); SemanticFactory.initGenericSemanticPeer( resource, deploymentConfiguration, overlayProvider); return resource; }