/** * 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 used to create <code>Operation</code> object to * process the next phase of the negotiation. The operations that * are created using this factory ensure the processing can be * done asynchronously, which reduces the overhead the connection * thread has when handing the pipelines over for processing. * * @param socket this is the pipeline that is to be processed * @param engine this is the engine used for SSL negotiations * * @return this returns the operation used for processing */ private Operation getInstance(Socket socket, SSLEngine engine) throws IOException { Transport transport = new SocketTransport(socket, reactor, buffer, threshold); if(engine != null) { return new Handshake(processor, transport, reactor, client); } return new TransportDispatcher(processor, transport); } }
/** * This method is used to create <code>Operation</code> object to * process the next phase of the negotiation. The operations that * are created using this factory ensure the processing can be * done asynchronously, which reduces the overhead the connection * thread has when handing the pipelines over for processing. * * @param socket this is the pipeline that is to be processed * @param engine this is the engine used for SSL negotiations * * @return this returns the operation used for processing */ private Operation getInstance(Socket socket, SSLEngine engine) throws IOException { Transport transport = new SocketTransport(socket, reactor, buffer, threshold); if(engine != null) { return new Handshake(processor, transport, reactor, client); } return new TransportDispatcher(processor, transport); } }
/** * 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(); } }