Search in sources :

Example 1 with TimeoutIntMsg

use of org.thingsboard.server.extensions.api.plugins.msg.TimeoutIntMsg in project thingsboard by thingsboard.

the class DeviceActorMessageProcessor method registerPendingRpcRequest.

private void registerPendingRpcRequest(ActorContext context, ToDeviceRpcRequestPluginMsg msg, boolean sent, ToDeviceRpcRequestMsg rpcRequest, long timeout) {
    rpcPendingMap.put(rpcRequest.getRequestId(), new ToDeviceRpcRequestMetadata(msg, sent));
    TimeoutIntMsg timeoutMsg = new TimeoutIntMsg(rpcRequest.getRequestId(), timeout);
    scheduleMsgWithDelay(context, timeoutMsg, timeoutMsg.getTimeout());
}
Also used : TimeoutIntMsg(org.thingsboard.server.extensions.api.plugins.msg.TimeoutIntMsg)

Aggregations

TimeoutIntMsg (org.thingsboard.server.extensions.api.plugins.msg.TimeoutIntMsg)1