@Override protected boolean shouldFlush() { if (request == null) { return false; } if (request instanceof AbstractRequestContext) { return !((AbstractRequestContext) request).isLocked(); } return true; } }
@Override public void execute() { assert !openContextImpl.isLocked() : "AbstractRequestContext.fire() should have been a no-op"; openContextImpl.setFireDisabled(false); openContext.fire(); openContext = null; openContextImpl = null; } });
/** * Compute deltas for each entity seen by the context. * <p> * TODO(t.broyer): reduce payload size by only sending proxies that are * directly referenced by invocation arguments or by other proxies. For * backwards-compatibility with no-op requests and operation-only requests, * only do so when there's at least one invocation (or we can choose to * break backwards compatibility for those edge-cases). */ private List<OperationMessage> makePayloadOperations() { assert isLocked(); assert !state.diffing; state.diffing = true; try { List<OperationMessage> operations = new ArrayList<OperationMessage>(); for (AutoBean<? extends BaseProxy> currentView : state.editedProxies.values()) { OperationMessage operation = makeOperationMessage(BaseProxyCategory.stableId(currentView), currentView, true).as(); operations.add(operation); } return operations; } finally { state.diffing = false; } }
@Override protected boolean shouldFlush() { if (request == null) { return false; } if (request instanceof AbstractRequestContext) { return !((AbstractRequestContext) request).isLocked(); } return true; } }
@Override protected boolean shouldFlush() { if (request == null) { return false; } if (request instanceof AbstractRequestContext) { return !((AbstractRequestContext) request).isLocked(); } return true; } }
if (context == null || context.isLocked() || context.isDiffing()) { return returnValue;
@Override public void execute() { assert !openContextImpl.isLocked() : "AbstractRequestContext.fire() should have been a no-op"; openContextImpl.setFireDisabled(false); openContext.fire(); openContext = null; openContextImpl = null; } });
@Override public void execute() { assert !openContextImpl.isLocked() : "AbstractRequestContext.fire() should have been a no-op"; openContextImpl.setFireDisabled(false); openContext.fire(); openContext = null; openContextImpl = null; } });
@Override public void execute() { assert !openContextImpl.isLocked() : "AbstractRequestContext.fire() should have been a no-op"; openContextImpl.setFireDisabled(false); openContext.fire(); openContext = null; openContextImpl = null; } });
/** * Compute deltas for each entity seen by the context. * <p> * TODO(t.broyer): reduce payload size by only sending proxies that are * directly referenced by invocation arguments or by other proxies. For * backwards-compatibility with no-op requests and operation-only requests, * only do so when there's at least one invocation (or we can choose to * break backwards compatibility for those edge-cases). */ private List<OperationMessage> makePayloadOperations() { assert isLocked(); assert !state.diffing; state.diffing = true; try { List<OperationMessage> operations = new ArrayList<OperationMessage>(); for (AutoBean<? extends BaseProxy> currentView : state.editedProxies.values()) { OperationMessage operation = makeOperationMessage(BaseProxyCategory.stableId(currentView), currentView, true).as(); operations.add(operation); } return operations; } finally { state.diffing = false; } }
/** * Compute deltas for each entity seen by the context. * <p> * TODO(t.broyer): reduce payload size by only sending proxies that are * directly referenced by invocation arguments or by other proxies. For * backwards-compatibility with no-op requests and operation-only requests, * only do so when there's at least one invocation (or we can choose to * break backwards compatibility for those edge-cases). */ private List<OperationMessage> makePayloadOperations() { assert isLocked(); assert !state.diffing; state.diffing = true; try { List<OperationMessage> operations = new ArrayList<OperationMessage>(); for (AutoBean<? extends BaseProxy> currentView : state.editedProxies.values()) { OperationMessage operation = makeOperationMessage(BaseProxyCategory.stableId(currentView), currentView, true).as(); operations.add(operation); } return operations; } finally { state.diffing = false; } }
/** * Compute deltas for each entity seen by the context. * <p> * TODO(t.broyer): reduce payload size by only sending proxies that are * directly referenced by invocation arguments or by other proxies. For * backwards-compatibility with no-op requests and operation-only requests, * only do so when there's at least one invocation (or we can choose to * break backwards compatibility for those edge-cases). */ private List<OperationMessage> makePayloadOperations() { assert isLocked(); assert !state.diffing; state.diffing = true; try { List<OperationMessage> operations = new ArrayList<OperationMessage>(); for (AutoBean<? extends BaseProxy> currentView : state.editedProxies.values()) { OperationMessage operation = makeOperationMessage(BaseProxyCategory.stableId(currentView), currentView, true).as(); operations.add(operation); } return operations; } finally { state.diffing = false; } }
if (context == null || context.isLocked() || context.isDiffing()) { return returnValue;
if (context == null || context.isLocked() || context.isDiffing()) { return returnValue;
if (context == null || context.isLocked() || context.isDiffing()) { return returnValue;