void setDiscardResult() { final Object lock = this.lock; assert !holdsLock(lock); final EJBReceiverInvocationContext.ResultProducer resultProducer; synchronized (lock) { resultProducer = this.resultProducer; this.resultProducer = EJBReceiverInvocationContext.ResultProducer.NULL; // result is waiting, discard it if (state == State.WAITING) { transition(State.DONE); } // fall out of the lock to discard the old result (if any) checkStateInvariants(); } if (resultProducer != null) resultProducer.discardResult(); }
try { if (idx == chain.length) { result = resultProducer.getResult(); } else { result = chain[idx].getInterceptorInstance().handleInvocationResult(this);
try { if (idx == chain.length) { result = resultProducer.getResult(); } else { result = chain[idx].getInterceptorInstance().handleInvocationResult(this);
try { if (idx == chain.length) { result = resultProducer.getResult(); } else { result = chain[idx].getInterceptorInstance().handleInvocationResult(this);
void resultReady(EJBReceiverInvocationContext.ResultProducer resultProducer) { Assert.checkNotNullParam("resultProducer", resultProducer); synchronized (lock) { if (state.isWaiting() && this.resultProducer == null) { this.resultProducer = resultProducer; if (state == State.WAITING) { transition(State.READY); } checkStateInvariants(); return; } checkStateInvariants(); } // for whatever reason, we don't care resultProducer.discardResult(); }
void setDiscardResult() { final Object lock = this.lock; assert !holdsLock(lock); final EJBReceiverInvocationContext.ResultProducer resultProducer; synchronized (lock) { resultProducer = this.resultProducer; this.resultProducer = EJBReceiverInvocationContext.ResultProducer.NULL; // result is waiting, discard it if (state == State.WAITING) { transition(State.DONE); } // fall out of the lock to discard the old result (if any) checkStateInvariants(); } if (resultProducer != null) resultProducer.discardResult(); }
void resultReady(EJBReceiverInvocationContext.ResultProducer resultProducer) { Assert.checkNotNullParam("resultProducer", resultProducer); synchronized (lock) { if (state.isWaiting() && this.resultProducer == null) { this.resultProducer = resultProducer; if (state == State.WAITING) { transition(State.READY); } checkStateInvariants(); return; } checkStateInvariants(); } // for whatever reason, we don't care resultProducer.discardResult(); }
void setDiscardResult() { final Object lock = this.lock; assert !holdsLock(lock); final EJBReceiverInvocationContext.ResultProducer resultProducer; synchronized (lock) { resultProducer = this.resultProducer; this.resultProducer = EJBReceiverInvocationContext.ResultProducer.NULL; // result is waiting, discard it if (state == State.WAITING) { transition(State.DONE); } // fall out of the lock to discard the old result (if any) checkStateInvariants(); } if (resultProducer != null) resultProducer.discardResult(); }
void resultReady(EJBReceiverInvocationContext.ResultProducer resultProducer) { Assert.checkNotNullParam("resultProducer", resultProducer); synchronized (lock) { if (state.isWaiting() && this.resultProducer == null) { this.resultProducer = resultProducer; if (state == State.WAITING) { transition(State.READY); } checkStateInvariants(); return; } checkStateInvariants(); } // for whatever reason, we don't care resultProducer.discardResult(); }