Example #1
0
        public void Process()
        {
            ClientManager clientManager;

            lock (ConnectionManager.ConnectionTable) clientManager = (ClientManager)ConnectionManager.ConnectionTable[_clientId];
            if (clientManager != null)
            {
                Alachisoft.NCache.Common.Protobuf.Response          response          = new Alachisoft.NCache.Common.Protobuf.Response();
                Alachisoft.NCache.Common.Protobuf.HeartBeatResponse heartBeatResponse = new Alachisoft.NCache.Common.Protobuf.HeartBeatResponse();

                response.heartBeatResponse = heartBeatResponse;
                response.responseType      = Alachisoft.NCache.Common.Protobuf.Response.Type.HEART_BEAT;

                IList serializedResponse = Alachisoft.NCache.Common.Util.ResponseHelper.SerializeResponse(response);

                ConnectionManager.AssureSend(clientManager, serializedResponse, Alachisoft.NCache.Common.Enum.Priority.Low);
            }
        }
Example #2
0
        public void Process()
        {
            ClientManager clientManager;

            lock (ConnectionManager.ConnectionTable) clientManager = (ClientManager)ConnectionManager.ConnectionTable[_clientId];
            if (clientManager != null)
            {
                Alachisoft.NCache.Common.Protobuf.Response          response          = new Alachisoft.NCache.Common.Protobuf.Response();
                Alachisoft.NCache.Common.Protobuf.HeartBeatResponse heartBeatResponse = new Alachisoft.NCache.Common.Protobuf.HeartBeatResponse();

                response.heartBeatResponse = heartBeatResponse;
                response.responseType      = Alachisoft.NCache.Common.Protobuf.Response.Type.HEART_BEAT;

                IList serializedResponse = Alachisoft.NCache.Common.Util.ResponseHelper.SerializeResponse(response);

                ConnectionManager.AssureSend(clientManager, serializedResponse, false);

                //ConnectionManager.AssureSend(clientManager, clientManager.ReplyPacket("QUEUEFULLNOTIF \"", new byte[0]));
            }
        }