mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

gbellato
28.38.2009 15200804c06b26016c515617700a46bf5badb6ca
opends/src/server/org/opends/server/replication/protocol/SocketSession.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2006-2008 Sun Microsystems, Inc.
 *      Copyright 2006-2009 Sun Microsystems, Inc.
 */
package org.opends.server.replication.protocol;
@@ -67,6 +67,8 @@
   */
  private long lastReceiveTime = 0;
  private boolean closeInitiated = false;
  /**
   * Creates a new SocketSession based on the provided socket.
@@ -90,6 +92,8 @@
   */
  public void close() throws IOException
  {
    closeInitiated = true;
    if (debugEnabled())
    {
      TRACER.debugInfo("Closing SocketSession."
@@ -231,4 +235,12 @@
  {
    socket.setSoTimeout(timeout);
  }
  /**
   * {@inheritDoc}
   */
  public boolean closeInitiated()
  {
    return closeInitiated;
  }
}