Search in sources :

Example 1 with DeviceActorServerSideRpcTimeoutMsg

use of org.thingsboard.server.common.msg.timeout.DeviceActorServerSideRpcTimeoutMsg in project thingsboard by thingsboard.

the class DeviceActorMessageProcessor method registerPendingRpcRequest.

private void registerPendingRpcRequest(TbActorCtx context, ToDeviceRpcRequestActorMsg msg, boolean sent, ToDeviceRpcRequestMsg rpcRequest, long timeout) {
    toDeviceRpcPendingMap.put(rpcRequest.getRequestId(), new ToDeviceRpcRequestMetadata(msg, sent));
    DeviceActorServerSideRpcTimeoutMsg timeoutMsg = new DeviceActorServerSideRpcTimeoutMsg(rpcRequest.getRequestId(), timeout);
    scheduleMsgWithDelay(context, timeoutMsg, timeoutMsg.getTimeout());
}
Also used : DeviceActorServerSideRpcTimeoutMsg(org.thingsboard.server.common.msg.timeout.DeviceActorServerSideRpcTimeoutMsg)

Aggregations

DeviceActorServerSideRpcTimeoutMsg (org.thingsboard.server.common.msg.timeout.DeviceActorServerSideRpcTimeoutMsg)1