void onClientKeepalive(final long clientId) { final AeronClient client = findClient(clients, clientId); if (null != client) { client.timeOfLastKeepaliveMs(cachedEpochClock.time()); } }
private AeronClient getOrAddClient(final long clientId) { AeronClient client = findClient(clients, clientId); if (null == client) { client = new AeronClient( clientId, clientLivenessTimeoutNs, cachedEpochClock.time(), ctx.systemCounters().get(SystemCounterDescriptor.CLIENT_TIMEOUTS), ClientHeartbeatStatus.allocate(tempBuffer, countersManager, clientId)); clients.add(client); } return client; }
protected int preWork() { int workCount = 0; final long nowMs = epochClock.time(); if (cachedEpochClock.time() != nowMs) { cachedEpochClock.update(nowMs); markFile.updateActivityTimestamp(nowMs); workCount += aeronAgentInvoker.invoke(); } workCount += invokeDriverConductor(); workCount += runTasks(taskQueue); return workCount; }
private void heartbeatAndCheckTimers(final long nowNs) { final long nowMs = cachedEpochClock.time(); toDriverCommands.consumerHeartbeatTime(nowMs); checkManagedResources(clients, nowNs, nowMs); checkManagedResources(publicationLinks, nowNs, nowMs); checkManagedResources(networkPublications, nowNs, nowMs); checkManagedResources(subscriptionLinks, nowNs, nowMs); checkManagedResources(publicationImages, nowNs, nowMs); checkManagedResources(ipcPublications, nowNs, nowMs); checkManagedResources(counterLinks, nowNs, nowMs); }
cachedEpochClock.time(), initialTermId, segmentFileLength,
void onClientKeepalive(final long clientId) { final AeronClient client = findClient(clients, clientId); if (null != client) { client.timeOfLastKeepaliveMs(cachedEpochClock.time()); } }
void onClientKeepalive(final long clientId) { final AeronClient client = findClient(clients, clientId); if (null != client) { client.timeOfLastKeepaliveMs(cachedEpochClock.time()); } }
private AeronClient getOrAddClient(final long clientId) { AeronClient client = findClient(clients, clientId); if (null == client) { client = new AeronClient( clientId, clientLivenessTimeoutNs, cachedEpochClock.time(), ctx.systemCounters().get(SystemCounterDescriptor.CLIENT_TIMEOUTS), ClientHeartbeatStatus.allocate(tempBuffer, countersManager, clientId)); clients.add(client); } return client; }
private AeronClient getOrAddClient(final long clientId) { AeronClient client = findClient(clients, clientId); if (null == client) { client = new AeronClient( clientId, clientLivenessTimeoutNs, cachedEpochClock.time(), ctx.systemCounters().get(SystemCounterDescriptor.CLIENT_TIMEOUTS), ClientHeartbeatStatus.allocate(tempBuffer, countersManager, clientId)); clients.add(client); } return client; }
protected int preWork() { int workCount = 0; final long nowMs = epochClock.time(); if (cachedEpochClock.time() != nowMs) { cachedEpochClock.update(nowMs); markFile.updateActivityTimestamp(nowMs); workCount += aeronAgentInvoker.invoke(); } workCount += invokeDriverConductor(); workCount += runTasks(taskQueue); return workCount; }
private void heartbeatAndCheckTimers(final long nowNs) { final long nowMs = cachedEpochClock.time(); toDriverCommands.consumerHeartbeatTime(nowMs); checkManagedResources(clients, nowNs, nowMs); checkManagedResources(publicationLinks, nowNs, nowMs); checkManagedResources(networkPublications, nowNs, nowMs); checkManagedResources(subscriptionLinks, nowNs, nowMs); checkManagedResources(publicationImages, nowNs, nowMs); checkManagedResources(ipcPublications, nowNs, nowMs); checkManagedResources(counterLinks, nowNs, nowMs); }
private void heartbeatAndCheckTimers(final long nowNs) { final long nowMs = cachedEpochClock.time(); toDriverCommands.consumerHeartbeatTime(nowMs); checkManagedResources(clients, nowNs, nowMs); checkManagedResources(publicationLinks, nowNs, nowMs); checkManagedResources(networkPublications, nowNs, nowMs); checkManagedResources(subscriptionLinks, nowNs, nowMs); checkManagedResources(publicationImages, nowNs, nowMs); checkManagedResources(ipcPublications, nowNs, nowMs); checkManagedResources(counterLinks, nowNs, nowMs); }
cachedEpochClock.time(), initialTermId, segmentFileLength,