/** * Create or retrieve a SimpleProxyId. If both the serverId and clientId are * specified and the id is ephemeral, it will be updated with the server id. */ public <P extends BaseProxy> SimpleProxyId<P> getId(Class<P> clazz, String serverId, int clientId) { return getId(getTypeToken(clazz), serverId, clientId); }
public String getHistoryToken(SimpleProxyId<?> proxy) { SimpleProxyId<?> id = (SimpleProxyId<?>) proxy; String token = getTypeToken(proxy.getProxyClass()); if (id.isEphemeral()) { return IdUtil.ephemeralId(id.getClientId(), token); } else if (id.isSynthetic()) { return IdUtil.syntheticId(id.getSyntheticId(), token); } else { return IdUtil.persistedId(id.getServerId(), token); } }
/** * Create or retrieve a SimpleProxyId. If both the serverId and clientId are * specified and the id is ephemeral, it will be updated with the server id. */ public <P extends BaseProxy> SimpleProxyId<P> getId(Class<P> clazz, String serverId, int clientId) { return getId(getTypeToken(clazz), serverId, clientId); }
/** * Create or retrieve a SimpleProxyId. If both the serverId and clientId are * specified and the id is ephemeral, it will be updated with the server id. */ public <P extends BaseProxy> SimpleProxyId<P> getId(Class<P> clazz, String serverId, int clientId) { return getId(getTypeToken(clazz), serverId, clientId); }
/** * Create or retrieve a SimpleProxyId. If both the serverId and clientId are * specified and the id is ephemeral, it will be updated with the server id. */ public <P extends BaseProxy> SimpleProxyId<P> getId(Class<P> clazz, String serverId, int clientId) { return getId(getTypeToken(clazz), serverId, clientId); }
public String getHistoryToken(SimpleProxyId<?> proxy) { SimpleProxyId<?> id = (SimpleProxyId<?>) proxy; String token = getTypeToken(proxy.getProxyClass()); if (id.isEphemeral()) { return IdUtil.ephemeralId(id.getClientId(), token); } else if (id.isSynthetic()) { return IdUtil.syntheticId(id.getSyntheticId(), token); } else { return IdUtil.persistedId(id.getServerId(), token); } }
public String getHistoryToken(SimpleProxyId<?> proxy) { SimpleProxyId<?> id = (SimpleProxyId<?>) proxy; String token = getTypeToken(proxy.getProxyClass()); if (id.isEphemeral()) { return IdUtil.ephemeralId(id.getClientId(), token); } else if (id.isSynthetic()) { return IdUtil.syntheticId(id.getSyntheticId(), token); } else { return IdUtil.persistedId(id.getServerId(), token); } }
public String getHistoryToken(SimpleProxyId<?> proxy) { SimpleProxyId<?> id = (SimpleProxyId<?>) proxy; String token = getTypeToken(proxy.getProxyClass()); if (id.isEphemeral()) { return IdUtil.ephemeralId(id.getClientId(), token); } else if (id.isSynthetic()) { return IdUtil.syntheticId(id.getSyntheticId(), token); } else { return IdUtil.persistedId(id.getServerId(), token); } }