@Override public void oneway(Object command) throws IOException { String address =(next!=null?next.getRemoteAddress():null); if (address!=null) { String name = Thread.currentThread().getName(); try { String sendname = name + " - SendTo:"+address; Thread.currentThread().setName(sendname); super.oneway(command); }finally { Thread.currentThread().setName(name); } } else { super.oneway(command); } }
public void oneway(Object command) throws IOException { boolean wasInterrupted = Thread.interrupted(); try { if (readyCountDownLatch.getCount() > 0 && !readyCountDownLatch.await(negotiateTimeout, TimeUnit.MILLISECONDS)) { throw new IOException("Wire format negotiation timeout: peer did not send his wire format."); } } catch (InterruptedException e) { InterruptedIOException interruptedIOException = new InterruptedIOException("Interrupted waiting for wire format negotiation"); interruptedIOException.initCause(e); try { onException(interruptedIOException); } finally { Thread.currentThread().interrupt(); wasInterrupted = false; } throw interruptedIOException; } finally { if (wasInterrupted) { Thread.currentThread().interrupt(); } } super.oneway(command); }
@Override public void oneway(Object command) throws IOException { try { registerWrite(this); super.oneway(command); } catch (IOException x) { throw x; } finally { deRegisterWrite(this,false,null); } }
public void oneway(Object command) throws IOException { try { if (!readyCountDownLatch.await(negotiateTimeout, TimeUnit.MILLISECONDS)) { throw new IOException("Wire format negotiation timeout: peer did not send his wire format."); } } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new InterruptedIOException(); } super.oneway(command); }
@Override public void oneway(Object command) throws IOException { String address =(next!=null?next.getRemoteAddress():null); if (address!=null) { String name = Thread.currentThread().getName(); try { String sendname = name + " - SendTo:"+address; Thread.currentThread().setName(sendname); super.oneway(command); }finally { Thread.currentThread().setName(name); } } else { super.oneway(command); } }
@Override public void oneway(Object command) throws IOException { String address =(next!=null?next.getRemoteAddress():null); if (address!=null) { String name = Thread.currentThread().getName(); try { String sendname = name + " - SendTo:"+address; Thread.currentThread().setName(sendname); super.oneway(command); }finally { Thread.currentThread().setName(name); } } else { super.oneway(command); } }
@Override public void oneway(Object command) throws IOException { String address =(next!=null?next.getRemoteAddress():null); if (address!=null) { String name = Thread.currentThread().getName(); try { String sendname = name + " - SendTo:"+address; Thread.currentThread().setName(sendname); super.oneway(command); }finally { Thread.currentThread().setName(name); } } else { super.oneway(command); } }
@Override public void oneway(Object command) throws IOException { String address =(next!=null?next.getRemoteAddress():null); if (address!=null) { String name = Thread.currentThread().getName(); try { String sendname = name + " - SendTo:"+address; Thread.currentThread().setName(sendname); super.oneway(command); }finally { Thread.currentThread().setName(name); } } else { super.oneway(command); } }
public void oneway(Object command) throws IOException { boolean wasInterrupted = Thread.interrupted(); try { if (readyCountDownLatch.getCount() > 0 && !readyCountDownLatch.await(negotiateTimeout, TimeUnit.MILLISECONDS)) { throw new IOException("Wire format negotiation timeout: peer did not send his wire format."); } } catch (InterruptedException e) { InterruptedIOException interruptedIOException = new InterruptedIOException("Interrupted waiting for wire format negotiation"); interruptedIOException.initCause(e); try { onException(interruptedIOException); } finally { Thread.currentThread().interrupt(); wasInterrupted = false; } throw interruptedIOException; } finally { if (wasInterrupted) { Thread.currentThread().interrupt(); } } super.oneway(command); }
public void oneway(Object command) throws IOException { boolean wasInterrupted = Thread.interrupted(); try { if (readyCountDownLatch.getCount() > 0 && !readyCountDownLatch.await(negotiateTimeout, TimeUnit.MILLISECONDS)) { throw new IOException("Wire format negotiation timeout: peer did not send his wire format."); } } catch (InterruptedException e) { InterruptedIOException interruptedIOException = new InterruptedIOException("Interrupted waiting for wire format negotiation"); interruptedIOException.initCause(e); try { onException(interruptedIOException); } finally { Thread.currentThread().interrupt(); wasInterrupted = false; } throw interruptedIOException; } finally { if (wasInterrupted) { Thread.currentThread().interrupt(); } } super.oneway(command); }
public void oneway(Object command) throws IOException { boolean wasInterrupted = Thread.interrupted(); try { if (readyCountDownLatch.getCount() > 0 && !readyCountDownLatch.await(negotiateTimeout, TimeUnit.MILLISECONDS)) { throw new IOException("Wire format negotiation timeout: peer did not send his wire format."); } } catch (InterruptedException e) { InterruptedIOException interruptedIOException = new InterruptedIOException("Interrupted waiting for wire format negotiation"); interruptedIOException.initCause(e); try { onException(interruptedIOException); } finally { Thread.currentThread().interrupt(); wasInterrupted = false; } throw interruptedIOException; } finally { if (wasInterrupted) { Thread.currentThread().interrupt(); } } super.oneway(command); }
@Override public void oneway(Object command) throws IOException { try { registerWrite(this); super.oneway(command); } catch (IOException x) { throw x; } finally { deRegisterWrite(this,false,null); } }
@Override public void oneway(Object command) throws IOException { try { registerWrite(this); super.oneway(command); } catch (IOException x) { throw x; } finally { deRegisterWrite(this,false,null); } }
@Override public void oneway(Object command) throws IOException { try { registerWrite(this); super.oneway(command); } catch (IOException x) { throw x; } finally { deRegisterWrite(this,false,null); } }
@Override public void oneway(Object command) throws IOException { try { registerWrite(this); super.oneway(command); } catch (IOException x) { throw x; } finally { deRegisterWrite(this,false,null); } }