/** * Get the timeout value associated with the event * * @return the timeout for the event */ public int getTimeout() { return event.getTimeout(); }
@Override protected String getWsdlContents(final MuleEvent event) throws Exception { String wsdlAddress = wsdlAddressProvider.get(event); String wsdlString; final MuleContext muleContext = event.getMuleContext(); final InboundEndpoint webServiceEndpoint = muleContext.getEndpointFactory().getInboundEndpoint( wsdlAddress); if (logger.isDebugEnabled()) { logger.debug("Retrieving WSDL from web service with: " + webServiceEndpoint); } final MuleMessage replyWSDL = webServiceEndpoint.request(event.getTimeout()); wsdlString = replyWSDL.getPayloadAsString(); return wsdlString; } }
private int resolveResponseTimeout(MuleEvent muleEvent) { if (muleEvent.getMuleContext().getConfiguration().isDisableTimeouts()) { return MuleEvent.TIMEOUT_WAIT_FOREVER; } if (responseTimeout.getRawValue() == null) { return muleEvent.getTimeout(); } else { return responseTimeout.resolveIntegerValue(muleEvent); } }
Object result = receiveFromSocket(socket, event.getTimeout(), endpoint); if (result == null)
@Override protected synchronized MuleMessage doSend(MuleEvent event) throws Exception { doDispatch(event); // If we're doing sync receive try and read return info from socket if (endpoint.getExchangePattern().hasResponse()) { DatagramSocket socket = connector.getSocket(endpoint); DatagramPacket result = receive(socket, event.getTimeout()); if (result == null) { return createNullMuleMessage(); } return createMuleMessage(result, event.getMessage(), endpoint.getEncoding()); } else { return new DefaultMuleMessage(NullPayload.getInstance(), getEndpoint().getMuleContext()); } }
Object result = receiveFromSocket(socket, event.getTimeout(), endpoint); if (result == null)
this.replyToHandler = replyToHandler; this.replyToDestination = replyToDestination; this.timeout = rewriteEvent.getTimeout(); this.transacted = rewriteEvent.isTransacted(); this.notificationsEnabled = rewriteEvent.isNotificationsEnabled();
if (!event.getMuleContext().waitUntilStarted(event.getTimeout()))