BleDeviceManagerConfiguration.Builder

public static class Builder

Builder class.

Constructors

Builder

public Builder()

Builder constructor.

Methods

build

public BleDeviceManagerConfiguration build()

Builds a new instance of a BleDeviceManagerConfiguration using the configured parameters.

Returns

A valid BleDeviceManagerConfiguration.

buildDefault

public BleDeviceManagerConfiguration buildDefault()

Builds a new instance of a BleDeviceManagerConfiguration using the default parameters.

Equivalent to:

BleDeviceManagerConfiguration mBleConfiguration = new BleDeviceManagerConfiguration.Builder()
  .withConnectionTimeout()
  .withReconnectionTimeout()
  .withDiscoveryTimeout()
  .withReadTimeout()
  .withWriteTimeout()
  .build();
Returns

A valid BleDeviceManagerConfiguration.

withConnectionTimeout

public BleDeviceManagerConfiguration.Builder withConnectionTimeout(int timeout)

Sets the connection timeout.

Parameters
  • timeout – The desired timeout, in seconds.

Returns

This Builder instance.

withDiscoveryTimeout

public BleDeviceManagerConfiguration.Builder withDiscoveryTimeout(int timeout)

Sets the discovery timeout.

Parameters
  • timeout – The desired timeout, in seconds.

Returns

This Builder instance.

withReadTimeout

public BleDeviceManagerConfiguration.Builder withReadTimeout(int timeout)

Sets the read timeout.

Parameters
  • timeout – The desired timeout, in seconds.

Returns

This Builder instance.

withReconnectionTimeout

public BleDeviceManagerConfiguration.Builder withReconnectionTimeout(int timeout)

Sets the link loss reconnection timeout.

See de.sensry.kallisto.service.listeners.events.SystemEventType.LINK_LOSS.

Parameters
  • timeout – The desired timeout, in seconds.

Returns

This Builder instance.

withWriteTimeout

public BleDeviceManagerConfiguration.Builder withWriteTimeout(int timeout)

Sets the write timeout.

Parameters
  • timeout – The desired timeout, in seconds.

Returns

This Builder instance.