Skip to content

Commit

Permalink
Use THREAD_POOL_NAME as name of thread pool
Browse files Browse the repository at this point in the history
  • Loading branch information
magx2 committed Mar 24, 2019
1 parent 33cfdde commit 6c243c9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import static org.openhab.binding.supla.SuplaBindingConstants.API_VERSION_CHANNEL_ID;
import static org.openhab.binding.supla.SuplaBindingConstants.CLOUD_VERSION_CHANNEL_ID;
import static org.openhab.binding.supla.SuplaBindingConstants.O_AUTH_TOKEN;
import static org.openhab.binding.supla.SuplaBindingConstants.THREAD_POOL_NAME;
import static org.openhab.binding.supla.internal.cloud.ApiClientFactory.FACTORY;

public class CloudBridgeHandler extends BaseBridgeHandler {
Expand Down Expand Up @@ -91,7 +92,7 @@ private void internalInitialize() throws ApiException {
return;
}

final ScheduledExecutorService scheduledPool = ThreadPoolManager.getScheduledPool("cloud-bridge-refresh-children");
final ScheduledExecutorService scheduledPool = ThreadPoolManager.getScheduledPool(THREAD_POOL_NAME);
final int refreshInterval = ((BigDecimal) config.get("refreshInterval")).intValue();
this.scheduledFuture = scheduledPool.scheduleAtFixedRate(
this::refreshCloudDevices,
Expand Down

0 comments on commit 6c243c9

Please sign in to comment.