private void Init() { _connectionManager = _client.GetConnectionManager(); _clientMembershipListener = new ClientMembershipListener(_client); _connectionManager.AddConnectionListener(this); _credentials = _client.GetClientConfig().GetCredentials(); }
public void Start() { _connectionManager.AddConnectionListener(this); if (IsSmart) { _connectionReopener = new Timer(ReOpenAllConnectionsIfNotOpen, null, 1000, 1000); } }
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); }
public ClientInvocationService(HazelcastClient client) { _client = client; _redoOperations = client.GetClientConfig().GetNetworkConfig().IsRedoOperation(); var eventTreadCount = EnvironmentUtil.ReadEnvironmentVar("hazelcast.client.event.thread.count") ?? DefaultEventThreadCount; _taskScheduler = new StripedTaskScheduler(eventTreadCount); // TODO: These should be consoliated with the way it's done in the Java client _retryCount = EnvironmentUtil.ReadEnvironmentVar("hazelcast.client.request.retry.count") ?? _retryCount; _retryWaitTime = EnvironmentUtil.ReadEnvironmentVar("hazelcast.client.request.retry.wait.time") ?? _retryWaitTime; _clientConnectionManager = (ClientConnectionManager)client.GetConnectionManager(); _clientConnectionManager.AddConnectionListener(this); _clientConnectionManager.AddConnectionHeartBeatListener(this); }
public void Start() { _clientConnectionManager = _client.GetConnectionManager(); _clientListenerService = _client.GetListenerService(); _clientConnectionManager.AddConnectionListener(this); }