AddConnectionHeartBeatListener() 공개 메소드

public AddConnectionHeartBeatListener ( IConnectionHeartbeatListener connectonHeartbeatListener ) : void
connectonHeartbeatListener IConnectionHeartbeatListener
리턴 void
        protected ClientInvocationService(HazelcastClient client)
        {
            _client = client;
            _redoOperations = client.GetClientConfig().GetNetworkConfig().IsRedoOperation();

            var eventTreadCount = EnvironmentUtil.ReadEnvironmentVar("hazelcast.client.event.thread.count") ??
                                  DefaultEventThreadCount;
            _taskScheduler = new StripedTaskScheduler(eventTreadCount);

            _invocationTimeoutMillis =
                (EnvironmentUtil.ReadEnvironmentVar("hazelcast.client.invocation.timeout.seconds") ??
                 DefaultInvocationTimeout)*1000;

            _clientConnectionManager = (ClientConnectionManager) client.GetConnectionManager();
            _clientConnectionManager.AddConnectionListener(this);
            _clientConnectionManager.AddConnectionHeartBeatListener(this);
        }
 private void Init()
 {
     _connectionManager = _client.GetConnectionManager();
     _clientMembershipListener = new ClientMembershipListener(_client);
     _connectionManager.AddConnectionHeartBeatListener(this);
     _connectionManager.AddConnectionListener(this);
     _credentials = _client.GetClientConfig().GetCredentials();
 }