/** * This is used to transfer the transport to the processor. This * will typically be executed asynchronously so that it does not * delay the thread that passes the <code>Transport</code> to the * transport processor, ensuring quicker processing. */ public void run() { try { processor.process(transport); }catch(Exception e) { cancel(); } }
/** * When this method runs it will firstly stop the processor in * a synchronous fashion. Once the <code>TransportProcessor</code> * has stopped it will stop the <code>Reactor</code> ensuring that * all threads will be released. * <p> * It is important to note that stopping the processor before * stopping the reactor is required. This ensures that if there * are any threads executing within the processor that require * the reactor threads, they can complete without a problem. */ public void run() { try { processor.stop(); executor.stop(); reactor.stop(); } catch(Exception e) { return; } } }
/** * When this method runs it will firstly stop the processor in * a synchronous fashion. Once the <code>TransportProcessor</code> * has stopped it will stop the <code>Reactor</code> ensuring that * all threads will be released. * <p> * It is important to note that stopping the processor before * stopping the reactor is required. This ensures that if there * are any threads executing within the processor that require * the reactor threads, they can complete without a problem. */ public void run() { try { processor.stop(); executor.stop(); reactor.stop(); } catch(Exception e) { return; } } }
/** * This is used to transfer the transport to the processor. This * will typically be executed asynchronously so that it does not * delay the thread that passes the <code>Transport</code> to the * transport processor, ensuring quicker processing. */ public void run() { try { processor.process(transport); }catch(Exception e) { cancel(); } }
/** * This method is invoked when the negotiation is done and the * next phase of the connection is to take place. This will * be invoked when the SSL handshake has completed and the new * secure transport is to be handed to the processor. */ private void dispatch() throws IOException { Transport secure = new SecureTransport(transport, state, output, input); if(processor != null) { trace.trace(HANDSHAKE_DONE); processor.process(secure); } }
/** * This method is invoked when the negotiation is done and the * next phase of the connection is to take place. This will * be invoked when the SSL handshake has completed and the new * secure transport is to be handed to the processor. */ private void dispatch() throws IOException { Transport secure = new SecureTransport(transport, state, output, input); if(processor != null) { trace.trace(HANDSHAKE_DONE); processor.process(secure); } }