Print this page


Split Close
Expand all
Collapse all
          --- old/src/share/classes/sun/rmi/transport/tcp/TCPTransport.java
          +++ new/src/share/classes/sun/rmi/transport/tcp/TCPTransport.java
↓ open down ↓ 111 lines elided ↑ open up ↑
 112  112                      return AccessController.doPrivileged(new NewThreadAction(
 113  113                          runnable, "TCP Connection(idle)", true, true));
 114  114                  }
 115  115              });
 116  116  
 117  117      /** total connections handled */
 118  118      private static final AtomicInteger connectionCount = new AtomicInteger(0);
 119  119  
 120  120      /** client host for the current thread's connection */
 121  121      private static final ThreadLocal<ConnectionHandler>
 122      -        threadConnectionHandler = new ThreadLocal<ConnectionHandler>();
      122 +        threadConnectionHandler = new ThreadLocal<>();
 123  123  
 124  124      /** endpoints for this transport */
 125  125      private final LinkedList<TCPEndpoint> epList;
 126  126      /** number of objects exported on this transport */
 127  127      private int exportCount = 0;
 128  128      /** server socket for this transport */
 129  129      private ServerSocket server = null;
 130  130      /** table mapping endpoints to channels */
 131  131      private final Map<TCPEndpoint,Reference<TCPChannel>> channelTable =
 132      -        new WeakHashMap<TCPEndpoint,Reference<TCPChannel>>();
      132 +        new WeakHashMap<>();
 133  133  
 134  134      static final RMISocketFactory defaultSocketFactory =
 135  135          RMISocketFactory.getDefaultSocketFactory();
 136  136  
 137  137      /** number of milliseconds in accepted-connection timeout.
 138  138       * Warning: this should be greater than 15 seconds (the client-side
 139  139       * timeout), and defaults to 2 hours.
 140  140       * The maximum representable value is slightly more than 24 days
 141  141       * and 20 hours.
 142  142       */
↓ open down ↓ 725 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX