private void notifyInterestRegistrationListeners(InterestRegistrationEvent event) { this.ccp.getCacheClientNotifier().notifyInterestRegistrationListeners(event); }
private boolean containsInterestRegistrationListeners() { return this.ccp.getCacheClientNotifier().containsInterestRegistrationListeners(); } }
private void notifyRegionOfInterest(InterestRegistrationEvent event) { this.ccp.getCacheClientNotifier().handleInterestEvent(event); }
private boolean closeSocket() { String remoteHostAddress = this._remoteHostAddress; if (this._socketClosed.compareAndSet(false, true) && remoteHostAddress != null) { // Only one thread is expected to close the socket this._cacheClientNotifier.getSocketCloser().asyncClose(this._socket, remoteHostAddress, null); getCacheClientNotifier().getAcceptorStats().decCurrentQueueConnections(); return true; } return false; }
CacheClientProxy.this); getCacheClientNotifier().removeClientProxy(CacheClientProxy.this); getCacheClientNotifier().durableClientTimedOut(CacheClientProxy.this.proxyID);
/** * Reinitialize a durable <code>CacheClientProxy</code> with a new client. * * @param socket The socket between the server and the client * @param ip whether this proxy represents the primary */ protected void reinitialize(Socket socket, ClientProxyMembershipID proxyId, Cache cache, boolean ip, byte cc, Version ver) { // Re-initialize transient fields initializeTransientFields(socket, proxyId, ip, cc, ver); getCacheClientNotifier().getAcceptorStats().incCurrentQueueConnections(); // Cancel expiration task cancelDurableExpirationTask(true); // Set the message dispatcher's primary flag. This could go from primary // to secondary this._messageDispatcher._messageQueue.setPrimary(ip); this._messageDispatcher._messageQueue.setClientConflation(cc); reinitializeClientAuths(); this.creationDate = new Date(); if (logger.isDebugEnabled()) { logger.debug("{}: Has been reinitialized", this); } }
chm.removeAllConnectionsAndUnregisterClient(proxyID, t); if (!getProxy().isDurable()) { getProxy().getCacheClientNotifier().unregisterClient(proxyID, false);