public String getHistoryToken(EntityProxyId<?> proxy) { return getHistoryToken((SimpleProxyId<?>) proxy); }
/** * Used by {@link AbstractRequestContext} to quiesce update events for objects * that haven't truly changed. */ protected boolean hasVersionChanged(SimpleProxyId<?> id, String observedVersion) { assert id != null : "id"; assert observedVersion != null : "observedVersion"; String key = getHistoryToken(id); String existingVersion = version.get(key); // Return true if we haven't seen this before or the versions differ boolean toReturn = existingVersion == null || !existingVersion.equals(observedVersion); if (toReturn) { version.put(key, observedVersion); } return toReturn; } }
@Override <Q extends BaseProxy> AutoBean<Q> getProxyForReturnPayloadGraph(SimpleProxyId<Q> id) { AutoBean<Q> toReturn = super.getProxyForReturnPayloadGraph(id); if (restored.add(id)) { /* * If we haven't seen the id before, use the data in the OperationMessage * to repopulate the properties of the canonical bean for this id. */ OperationMessage op = getOperation(getRequestFactory().getHistoryToken(id)); this.processReturnOperation(id, op); toReturn.setTag(Constants.STABLE_ID, super.getId(op)); } return toReturn; }
private void serializeOneProxy(SimpleProxyId<?> idForSerialization, AutoBean<? extends BaseProxy> bean) { AutoBean<OperationMessage> op = makeOperationMessage(serializedId(BaseProxyCategory.stableId(bean)), bean, false); store.put(getRequestFactory().getHistoryToken(idForSerialization), AutoBeanCodex.encode(op)); } }
return getRequestFactory().getHistoryToken(id);
public String getHistoryToken(EntityProxyId<?> proxy) { return getHistoryToken((SimpleProxyId<?>) proxy); }
public String getHistoryToken(EntityProxyId<?> proxy) { return getHistoryToken((SimpleProxyId<?>) proxy); }
public String getHistoryToken(EntityProxyId<?> proxy) { return getHistoryToken((SimpleProxyId<?>) proxy); }
/** * Used by {@link AbstractRequestContext} to quiesce update events for objects * that haven't truly changed. */ protected boolean hasVersionChanged(SimpleProxyId<?> id, String observedVersion) { assert id != null : "id"; assert observedVersion != null : "observedVersion"; String key = getHistoryToken(id); String existingVersion = version.get(key); // Return true if we haven't seen this before or the versions differ boolean toReturn = existingVersion == null || !existingVersion.equals(observedVersion); if (toReturn) { version.put(key, observedVersion); } return toReturn; } }
/** * Used by {@link AbstractRequestContext} to quiesce update events for objects * that haven't truly changed. */ protected boolean hasVersionChanged(SimpleProxyId<?> id, String observedVersion) { assert id != null : "id"; assert observedVersion != null : "observedVersion"; String key = getHistoryToken(id); String existingVersion = version.get(key); // Return true if we haven't seen this before or the versions differ boolean toReturn = existingVersion == null || !existingVersion.equals(observedVersion); if (toReturn) { version.put(key, observedVersion); } return toReturn; } }
/** * Used by {@link AbstractRequestContext} to quiesce update events for objects * that haven't truly changed. */ protected boolean hasVersionChanged(SimpleProxyId<?> id, String observedVersion) { assert id != null : "id"; assert observedVersion != null : "observedVersion"; String key = getHistoryToken(id); String existingVersion = version.get(key); // Return true if we haven't seen this before or the versions differ boolean toReturn = existingVersion == null || !existingVersion.equals(observedVersion); if (toReturn) { version.put(key, observedVersion); } return toReturn; } }
@Override <Q extends BaseProxy> AutoBean<Q> getProxyForReturnPayloadGraph(SimpleProxyId<Q> id) { AutoBean<Q> toReturn = super.getProxyForReturnPayloadGraph(id); if (restored.add(id)) { /* * If we haven't seen the id before, use the data in the OperationMessage * to repopulate the properties of the canonical bean for this id. */ OperationMessage op = getOperation(getRequestFactory().getHistoryToken(id)); this.processReturnOperation(id, op); toReturn.setTag(Constants.STABLE_ID, super.getId(op)); } return toReturn; }
@Override <Q extends BaseProxy> AutoBean<Q> getProxyForReturnPayloadGraph(SimpleProxyId<Q> id) { AutoBean<Q> toReturn = super.getProxyForReturnPayloadGraph(id); if (restored.add(id)) { /* * If we haven't seen the id before, use the data in the OperationMessage * to repopulate the properties of the canonical bean for this id. */ OperationMessage op = getOperation(getRequestFactory().getHistoryToken(id)); this.processReturnOperation(id, op); toReturn.setTag(Constants.STABLE_ID, super.getId(op)); } return toReturn; }
@Override <Q extends BaseProxy> AutoBean<Q> getProxyForReturnPayloadGraph(SimpleProxyId<Q> id) { AutoBean<Q> toReturn = super.getProxyForReturnPayloadGraph(id); if (restored.add(id)) { /* * If we haven't seen the id before, use the data in the OperationMessage * to repopulate the properties of the canonical bean for this id. */ OperationMessage op = getOperation(getRequestFactory().getHistoryToken(id)); this.processReturnOperation(id, op); toReturn.setTag(Constants.STABLE_ID, super.getId(op)); } return toReturn; }
private void serializeOneProxy(SimpleProxyId<?> idForSerialization, AutoBean<? extends BaseProxy> bean) { AutoBean<OperationMessage> op = makeOperationMessage(serializedId(BaseProxyCategory.stableId(bean)), bean, false); store.put(getRequestFactory().getHistoryToken(idForSerialization), AutoBeanCodex.encode(op)); } }
private void serializeOneProxy(SimpleProxyId<?> idForSerialization, AutoBean<? extends BaseProxy> bean) { AutoBean<OperationMessage> op = makeOperationMessage(serializedId(BaseProxyCategory.stableId(bean)), bean, false); store.put(getRequestFactory().getHistoryToken(idForSerialization), AutoBeanCodex.encode(op)); } }
private void serializeOneProxy(SimpleProxyId<?> idForSerialization, AutoBean<? extends BaseProxy> bean) { AutoBean<OperationMessage> op = makeOperationMessage(serializedId(BaseProxyCategory.stableId(bean)), bean, false); store.put(getRequestFactory().getHistoryToken(idForSerialization), AutoBeanCodex.encode(op)); } }
return getRequestFactory().getHistoryToken(id);
return getRequestFactory().getHistoryToken(id);
return getRequestFactory().getHistoryToken(id);