public ClusterService(HazelcastClient client)
 {
     _client                  = client;
     _labels                  = new ReadOnlyCollection <string>(_client.ClientConfig.Labels.ToList());
     _connectionManager       = _client.ConnectionManager;
     _partitionService        = client.PartitionService;
     _clientInvocationService = client.InvocationService;
     ClusterName              = _client.ClientConfig.GetClusterName();
 }
예제 #2
0
        public void Start()
        {
            _connectionManager = _client.ConnectionManager;
            _partitionService  = _client.PartitionService;
            _listenerService   = _client.ListenerService;

            _client.ExecutionService.ScheduleWithFixedDelay(CleanResources, _cleanResourceInterval, _cleanResourceInterval,
                                                            _cancelToken.Token);
        }