public boolean matches(final PublicationImage image) { return image.channelEndpoint() == this.channelEndpoint && image.streamId() == this.streamId && isWildcardOrSessionIdMatch(image.sessionId()); }
public void removeSubscription(final ReceiveChannelEndpoint mediaEndpoint, final int streamId) { if (notConcurrent()) { receiver.onRemoveSubscription(mediaEndpoint, streamId); } else { offer(() -> receiver.onRemoveSubscription(mediaEndpoint, streamId)); } }
public void addSubscription(final ReceiveChannelEndpoint mediaEndpoint, final int streamId) { if (notConcurrent()) { receiver.onAddSubscription(mediaEndpoint, streamId); } else { offer(() -> receiver.onAddSubscription(mediaEndpoint, streamId)); } }
public boolean matches(final IpcPublication publication) { return publication.streamId() == streamId && isWildcardOrSessionIdMatch(publication.sessionId()); } }
public void newPublicationImage(final ReceiveChannelEndpoint channelEndpoint, final PublicationImage image) { if (notConcurrent()) { receiver.onNewPublicationImage(channelEndpoint, image); } else { offer(() -> receiver.onNewPublicationImage(channelEndpoint, image)); } }
public void removeDestination(final SendChannelEndpoint channelEndpoint, final InetSocketAddress address) { if (notConcurrent()) { sender.onRemoveDestination(channelEndpoint, address); } else { offer(() -> sender.onRemoveDestination(channelEndpoint, address)); } }
public void removeNetworkPublication(final NetworkPublication publication) { if (notConcurrent()) { sender.onRemoveNetworkPublication(publication); } else { offer(() -> sender.onRemoveNetworkPublication(publication)); } }
public void closeReceiveChannelEndpoint(final ReceiveChannelEndpoint channelEndpoint) { if (notConcurrent()) { receiver.onCloseReceiveChannelEndpoint(channelEndpoint); } else { offer(() -> receiver.onCloseReceiveChannelEndpoint(channelEndpoint)); } }
public void registerSendChannelEndpoint(final SendChannelEndpoint channelEndpoint) { if (notConcurrent()) { sender.onRegisterSendChannelEndpoint(channelEndpoint); } else { offer(() -> sender.onRegisterSendChannelEndpoint(channelEndpoint)); } }
public void closeSendChannelEndpoint(final SendChannelEndpoint channelEndpoint) { if (notConcurrent()) { sender.onCloseSendChannelEndpoint(channelEndpoint); } else { offer(() -> sender.onCloseSendChannelEndpoint(channelEndpoint)); } }
public void registerReceiveChannelEndpoint(final ReceiveChannelEndpoint channelEndpoint) { if (notConcurrent()) { receiver.onRegisterReceiveChannelEndpoint(channelEndpoint); } else { offer(() -> receiver.onRegisterReceiveChannelEndpoint(channelEndpoint)); } }
public void removeCoolDown(final ReceiveChannelEndpoint channelEndpoint, final int sessionId, final int streamId) { if (notConcurrent()) { receiver.onRemoveCoolDown(channelEndpoint, sessionId, streamId); } else { offer(() -> receiver.onRemoveCoolDown(channelEndpoint, sessionId, streamId)); } }
public void addDestination(final SendChannelEndpoint channelEndpoint, final InetSocketAddress address) { if (notConcurrent()) { sender.onAddDestination(channelEndpoint, address); } else { offer(() -> sender.onAddDestination(channelEndpoint, address)); } }
public void channelEndpointError(final long statusIndicatorId, final Exception error) { if (notConcurrent()) { driverConductor.onChannelEndpointError(statusIndicatorId, error); } else { offer(() -> driverConductor.onChannelEndpointError(statusIndicatorId, error)); } }
private void checkTimerExpiry(final long nowNs) { if (deadlineNs - nowNs <= 0) { lossHandler.onGapDetected(activeGap.termId, activeGap.termOffset, activeGap.length); deadlineNs = nowNs + delayGenerator.generateDelay(); } }
private void activateGap(final long nowNs, final Gap gap) { activeGap.set(gap.termId, gap.termOffset, gap.length); if (delayGenerator.shouldFeedbackImmediately()) { deadlineNs = nowNs; } else { deadlineNs = nowNs + delayGenerator.generateDelay(); } }
void onClientClose(final long clientId) { final AeronClient client = findClient(clients, clientId); if (null != client) { client.timeOfLastKeepaliveMs(0); } }
public void removeSubscription(final ReceiveChannelEndpoint mediaEndpoint, final int streamId, final int sessionId) { if (notConcurrent()) { receiver.onRemoveSubscription(mediaEndpoint, streamId, sessionId); } else { offer(() -> receiver.onRemoveSubscription(mediaEndpoint, streamId, sessionId)); } }