Package com.opengamma.transport

Examples of com.opengamma.transport.FudgeConnectionStateListener


        }
      } else {
        s_logger.info(errorMessage);
        terminate();
      }
      final FudgeConnectionStateListener listener = _listener;
      if (listener != null) {
        listener.connectionFailed(_connection, cause);
      }
    }
View Full Code Here


    };
    final Thread thread = new Thread(_receiverJob, "Incoming " + socket.getRemoteSocketAddress());
    thread.setDaemon(true);
    thread.start();
    // We don't keep hold of the thread as we're never going to join it; terminating the socket will let cause it to stop, finish and be GCd
    final FudgeConnectionStateListener stateListener = _stateListener;
    if (stateListener != null) {
      stateListener.connectionReset(this);
    }
  }
View Full Code Here

  public void setConnectionStateListener(FudgeConnectionStateListener listener) {
    _stateListener = listener;
  }
 
  protected void notifyConnectionFailed(Exception e) {
    final FudgeConnectionStateListener stateListener = _stateListener;
    if (stateListener != null) {
      try {
        stateListener.connectionFailed(SocketFudgeConnection.this, e);
      } catch (Exception e2) {
        s_logger.warn("Error notifying state listener of connection failure", e2);
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.opengamma.transport.FudgeConnectionStateListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.