diff src/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java @ 946:901dcfa05c32

remove SelectChannelEndPoint._interruptable
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 11 Oct 2016 21:10:17 -0600
parents 89fe80dfab2c
children 64f3d8dae31d
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java	Tue Oct 11 20:53:06 2016 -0600
+++ b/src/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java	Tue Oct 11 21:10:17 2016 -0600
@@ -88,8 +88,6 @@
 	private volatile long _idleTimestamp;
 	private volatile boolean _checkIdle;
 	
-	private boolean _interruptable;
-
 	private boolean _ishut;
 
 	/* ------------------------------------------------------------ */
@@ -403,8 +401,6 @@
 					catch (final InterruptedException e)
 					{
 						LOG.warn("",e);
-						if (_interruptable)
-							throw new InterruptedIOException(){{this.initCause(e);}};
 					}
 					finally
 					{
@@ -453,8 +449,6 @@
 					catch (final InterruptedException e)
 					{
 						LOG.warn("",e);
-						if (_interruptable)
-							throw new InterruptedIOException(){{this.initCause(e);}};
 					}
 					finally
 					{
@@ -474,28 +468,6 @@
 	}
 
 	/* ------------------------------------------------------------ */
-	/** Set the interruptable mode of the endpoint.
-	 * If set to false (default), then interrupts are assumed to be spurious 
-	 * and blocking operations continue unless the endpoint has been closed.
-	 * If true, then interrupts of blocking operations result in InterruptedIOExceptions
-	 * being thrown.
-	 * @param interupable
-	 */
-	public void setInterruptable(boolean interupable)
-	{
-		synchronized (this)
-		{
-			_interruptable=interupable;
-		}
-	}
-
-	/* ------------------------------------------------------------ */
-	public boolean isInterruptable()
-	{
-		return _interruptable;
-	}
-	
-	/* ------------------------------------------------------------ */
 	/**
 	 * @see org.eclipse.jetty.io.AsyncEndPoint#scheduleWrite()
 	 */