Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package org.openbase.jul.communication.controller;
/*
* #%L
* JUL Extension Controller
* %%
* Copyright (C) 2015 - 2022 openbase.org
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* .
* #L%
*/
import org.openbase.jul.communication.data.RPCResponse;
import org.openbase.jul.communication.iface.RPCClient;
import org.openbase.jul.exception.CouldNotPerformException;
import org.openbase.jul.exception.InvalidStateException;
import org.openbase.jul.exception.NotAvailableException;
import org.openbase.jul.schedule.FutureProcessor;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
/**
* @author Divine Threepwood
*/
public class RPCUtils {
public static final long RPC_TIMEOUT = TimeUnit.MINUTES.toMillis(5);
public static final String USER_TIME_KEY = "USER_NANO_TIME";
public static final String CREATE_TIMESTAMP = "CREATE_TIMESTAMP";
public static final long USER_TIME_VALUE_INVALID = -1;
private static final String INTERNAL_CALL_REMOTE_METHOD_NAME = "internalCallRemoteMethod";
public static Future