/** * Indicate that the invocation result is ready. The given producer should either return the final * invocation result or throw an appropriate exception. Any unmarshalling is expected to be deferred until * the result producer is called, in order to offload the work on the invoking thread even in the presence of * asynchronous invocation. * * @param resultProducer the result producer */ public void resultReady(ResultProducer resultProducer) { clientInvocationContext.resultReady(resultProducer); }
/** * Discard the result from this request. Should only be called from {@link EJBClientInterceptor#handleInvocationResult(EJBClientInvocationContext)}. * * @throws IllegalStateException if there is no result to discard */ public void discardResult() throws IllegalStateException { resultReady(EJBClientInvocationContext.ONE_WAY); }
void cancelled() { resultReady(CANCELLED); }
void proceedAsynchronously() { if (getInvokedMethod().getReturnType() == void.class) { resultReady(EJBReceiverInvocationContext.ResultProducer.NULL); } }
synchronized (lock) { transition(State.SENT); resultReady(CANCELLED); checkStateInvariants();
/** * Indicate that the invocation result is ready. The given producer should either return the final * invocation result or throw an appropriate exception. Any unmarshalling is expected to be deferred until * the result producer is called, in order to offload the work on the invoking thread even in the presence of * asynchronous invocation. * * @param resultProducer the result producer */ public void resultReady(ResultProducer resultProducer) { clientInvocationContext.resultReady(resultProducer); }
/** * Discard the result from this request. Should only be called from {@link EJBClientInterceptor#handleInvocationResult(EJBClientInvocationContext)}. * * @throws IllegalStateException if there is no result to discard */ public void discardResult() throws IllegalStateException { resultReady(EJBClientInvocationContext.ONE_WAY); }
/** * Discard the result from this request. Should only be called from {@link EJBClientInterceptor#handleInvocationResult(EJBClientInvocationContext)}. * * @throws IllegalStateException if there is no result to discard */ public void discardResult() throws IllegalStateException { resultReady(EJBClientInvocationContext.ONE_WAY); }
/** * Indicate that the invocation result is ready. The given producer should either return the final * invocation result or throw an appropriate exception. Any unmarshalling is expected to be deferred until * the result producer is called, in order to offload the work on the invoking thread even in the presence of * asynchronous invocation. * * @param resultProducer the result producer */ public void resultReady(ResultProducer resultProducer) { clientInvocationContext.resultReady(resultProducer); }
void cancelled() { resultReady(CANCELLED); }
void cancelled() { resultReady(CANCELLED); }
void proceedAsynchronously() { if (getInvokedMethod().getReturnType() == void.class) { resultReady(EJBReceiverInvocationContext.ResultProducer.NULL); } }
void proceedAsynchronously() { if (getInvokedMethod().getReturnType() == void.class) { resultReady(EJBReceiverInvocationContext.ResultProducer.NULL); } }
synchronized (lock) { transition(State.SENT); resultReady(CANCELLED); checkStateInvariants();
synchronized (lock) { transition(State.SENT); resultReady(CANCELLED); checkStateInvariants();