public AddConnectionListener ( IConnectionListener connectionListener ) : void | ||
connectionListener | IConnectionListener | |
Результат | 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 = client.GetConnectionManager(); _clientConnectionManager.AddConnectionListener(this); }
private void Init() { _connectionManager = _client.GetConnectionManager(); _clientMembershipListener = new ClientMembershipListener(_client); _connectionManager.AddConnectionHeartBeatListener(this); _connectionManager.AddConnectionListener(this); _credentials = _client.GetClientConfig().GetCredentials(); }