diff src/org/eclipse/jetty/io/AbstractConnection.java @ 973:4d9fe9cc554d

simplify AbstractConnection
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 15 Oct 2016 23:03:00 -0600
parents 8e9db0bbf4f9
children 7422ca1ae146
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/AbstractConnection.java	Sat Oct 15 22:42:05 2016 -0600
+++ b/src/org/eclipse/jetty/io/AbstractConnection.java	Sat Oct 15 23:03:00 2016 -0600
@@ -28,56 +28,19 @@
 {
 	private static final Logger LOG = LoggerFactory.getLogger(AbstractConnection.class);
 
-	private final long _timeStamp;
 	protected final EndPoint _endp;
 
-	public AbstractConnection(EndPoint endp)
+	protected AbstractConnection(EndPoint endp)
 	{
-		_endp=(EndPoint)endp;
-		_timeStamp = System.currentTimeMillis();
+		_endp = endp;
 	}
 
-	public AbstractConnection(EndPoint endp,long timestamp)
-	{
-		_endp=(EndPoint)endp;
-		_timeStamp = timestamp;
-	}
-
-	public long getTimeStamp()
-	{
-		return _timeStamp;
-	}
-
-	public EndPoint getEndPoint()
+	public final EndPoint getEndPoint()
 	{
 		return _endp;
 	}
 
-	public void onIdleExpired(long idleForMs)
-	{
-		try
-		{
-			LOG.debug("onIdleExpired {}ms {} {}",idleForMs,this,_endp);
-			if (_endp.isInputShutdown() || _endp.isOutputShutdown())
-				_endp.close();
-			else
-				_endp.shutdownOutput();
-		}
-		catch(IOException e)
-		{
-			LOG.trace("",e);
-
-			try
-			{
-				_endp.close();
-			}
-			catch(IOException e2)
-			{
-				LOG.trace("",e2);
-			}
-		}
-	}
-
+	@Override
 	public String toString()
 	{
 		return String.format("%s@%x", getClass().getSimpleName(), hashCode());