@Override public void onReactorInit(Event e) { TRACE_LOGGER.info("reactor.onReactorInit"); final Reactor reactor = e.getReactor(); reactor.setTimeout(ClientConstants.REACTOR_IO_POLL_TIMEOUT); }
@Override public void onReactorInit(Event e) { TRACE_LOGGER.debug("reactor.onReactorInit"); final Reactor reactor = e.getReactor(); reactor.setTimeout(ClientConstants.REACTOR_IO_POLL_TIMEOUT); }
/** * Event handler for the reactor init event * @param event The proton event object */ @Override public void onReactorInit(Event event) { // You can use the connection method to create AMQP connections. // This connection's handler is the AmqpSendHandler object. All the events // for this connection will go to the AmqpSendHandler object instead of // going to the reactor. If you were to omit the AmqpSendHandler object, // all the events would go to the reactor. // Codes_SRS_SERVICE_SDK_JAVA_AMQPRECEIVE_12_002: [The event handler shall set the member AmqpsReceiveHandler object to handle the given connection events] event.getReactor().connection(amqpReceiveHandler); }
/** * Event handler for the reactor init event * @param event The proton event object */ @Override public void onReactorInit(Event event) { // You can use the connection method to create AMQP connections. // This connection's handler is the AmqpSendHandler object. All the events // for this connection will go to the AmqpSendHandler object instead of // going to the reactor. If you were to omit the AmqpSendHandler object, // all the events would go to the reactor. // Codes_SRS_SERVICE_SDK_JAVA_AMQPSEND_12_003: [The event handler shall set the member AmqpsSendHandler object to handle the given connection events] event.getReactor().connection(amqpSendHandler); }
/** * Event handler for the reactor init event * @param event The proton event object */ @Override public void onReactorInit(Event event) { // You can use the connection method to create AMQP connections. // This connection's handler is the AmqpSendHandler object. All the events // for this connection will go to the AmqpSendHandler object instead of // going to the reactor. If you were to omit the AmqpSendHandler object, // all the events would go to the reactor. // Codes_SRS_SERVICE_SDK_JAVA_AMQPFILEUPLOADNOTIFICATIONRECEIVE_25_002: [The event handler shall set the member AmqpsReceiveHandler object to handle the given connection events] event.getReactor().connection(amqpReceiveHandler); }
/** * Event handler for reactor init event. * @param event Proton Event object */ @Override public void onReactorInit(Event event) { // Codes_SRS_AMQPSIOTHUBCONNECTION_15_033: [The event handler shall set the current handler to handle the connection events.] if(this.useWebSockets) { event.getReactor().connectionToHost(this.config.getIotHubHostname(), amqpWebSocketPort, this); } else { event.getReactor().connectionToHost(this.config.getIotHubHostname(), amqpPort, this); } }
@Override public void onReactorInit(Event e) { super.onReactorInit(e); final Reactor r = e.getReactor(); connection = r.connectionToHost( connectionHandler.getRemoteHostName(), connectionHandler.getRemotePort(), connectionHandler); } }
@Override public void onReactorInit(Event e) { super.onReactorInit(e); final Reactor r = e.getReactor(); TRACE_LOGGER.info("Creating connection to host '{}:{}'", connectionHandler.getOutboundSocketHostName(), connectionHandler.getOutboundSocketPort()); connection = r.connectionToHost( connectionHandler.getOutboundSocketHostName(), connectionHandler.getOutboundSocketPort(), connectionHandler); } };
final Reactor reactor = e.getReactor(); final Iterator<Handler> reactorEventHandlers = reactor.getHandler().children(); while (reactorEventHandlers.hasNext()) {
/** * Event handler for reactor init event. * @param event Proton Event object */ @Override public void onReactorInit(Event event) { logger.LogDebug("Entered in method %s", logger.getMethodName()); event.getReactor().connectionToHost(this.hostName, this.useWebSockets ? AMQP_WEB_SOCKET_PORT : AMQP_PORT, this); logger.LogDebug("Exited from method %s", logger.getMethodName()); }
/** * Event handler for reactor init event. * @param event Proton Event object */ @Override public void onReactorInit(Event event) { logger.LogDebug("Entered in method %s", logger.getMethodName()); // Codes_SRS_AMQPSIOTHUBCONNECTION_15_033: [The event handler shall set the current handler to handle the connection events.] if(this.useWebSockets) { event.getReactor().connectionToHost(this.chooseHostname(), AMQP_WEB_SOCKET_PORT, this); } else { event.getReactor().connectionToHost(this.chooseHostname(), AMQP_PORT, this); } logger.LogDebug("Exited from method %s", logger.getMethodName()); }
final String hostName = event.getReactor().getConnectionAddress(connection); final ProxySelector proxySelector = ProxySelector.getDefault();
final String hostName = event.getReactor().getConnectionAddress(connection); final ProxySelector proxySelector = ProxySelector.getDefault(); if (errorCondition == null
@Override public void onUnhandled(Event event) { try { ReactorImpl reactor = (ReactorImpl)event.getReactor(); Selector selector = reactor.getSelector(); if (selector == null) {
@Override public void onUnhandled(Event event) { try { ReactorImpl reactor = (ReactorImpl)event.getReactor(); Selector selector = reactor.getSelector(); if (selector == null) {