public class IRRequestThrottler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DELAY_BETWEEN_REQUESTS_MS |
static java.lang.String |
TAG |
Constructor and Description |
---|
IRRequestThrottler(IRDeviceAPIService deviceAPIService,
IRInternetAPIService internetAPIService) |
Modifier and Type | Method and Description |
---|---|
com.getirkit.irkit.net.IRRequestThrottler.IRDeviceAPIRequester |
getDeviceAPIRequester()
Device HTTP APIにアクセスするためのクラスを返します。そのメソッドを呼ぶ際、適宜
スロットル制御が有効になります。
Returns a class which sends requests to Device HTTP API.
|
com.getirkit.irkit.net.IRRequestThrottler.IRInternetAPIRequester |
getInternetAPIRequester()
Internet HTTP APIにアクセスするためのクラスを返します。そのメソッドを呼ぶ際、適宜
スロットル制御が有効になります。
Returns a class which sends requests to Internet HTTP API.
|
static IRRequestThrottler |
getThrottler(IRPeripheral peripheral,
IRDeviceAPIService deviceAPIService,
IRInternetAPIService internetAPIService)
peripheralを対象とするIRRequestThrottlerを返します。
Returns an IRRequestThrottler for sending requests to the peripheral.
|
static IRRequestThrottler |
getThrottler(java.lang.String deviceId,
IRDeviceAPIService deviceAPIService,
IRInternetAPIService internetAPIService)
deviceIdを対象とするIRRequestThrottlerを返します。
Returns an IRRequestThrottler for sending requests to the deviceId.
|
public static final java.lang.String TAG
public static final int DELAY_BETWEEN_REQUESTS_MS
public IRRequestThrottler(IRDeviceAPIService deviceAPIService, IRInternetAPIService internetAPIService)
public static IRRequestThrottler getThrottler(IRPeripheral peripheral, IRDeviceAPIService deviceAPIService, IRInternetAPIService internetAPIService)
peripheral
- 対象とするIRKitデバイス。 Target IRKit device.deviceAPIService
- IRDeviceAPIService instance.internetAPIService
- IRInternetAPIService instance.public static IRRequestThrottler getThrottler(java.lang.String deviceId, IRDeviceAPIService deviceAPIService, IRInternetAPIService internetAPIService)
deviceId
- 対象とするIRKitデバイスのdeviceid。 Deviceid of target IRKit device.deviceAPIService
- IRDeviceAPIService instance.internetAPIService
- IRInternetAPIService instance.public com.getirkit.irkit.net.IRRequestThrottler.IRDeviceAPIRequester getDeviceAPIRequester()
public com.getirkit.irkit.net.IRRequestThrottler.IRInternetAPIRequester getInternetAPIRequester()