public int statusIndicatorCounterId() { return statusIndicator.id(); }
public int counterId() { return counter.id(); }
public int statusIndicatorCounterId() { return statusIndicator.id(); }
void onAddCounter( final int typeId, final DirectBuffer keyBuffer, final int keyOffset, final int keyLength, final DirectBuffer labelBuffer, final int labelOffset, final int labelLength, final long correlationId, final long clientId) { final AeronClient client = getOrAddClient(clientId); final AtomicCounter counter = countersManager.newCounter( typeId, keyBuffer, keyOffset, keyLength, labelBuffer, labelOffset, labelLength); counterLinks.add(new CounterLink(counter, correlationId, client)); clientProxy.onCounterReady(correlationId, counter.id()); }
public void openChannel(final DriverConductorProxy conductorProxy) { if (conductorProxy.notConcurrent()) { openDatagramChannel(statusIndicator); } else { try { openDatagramChannel(statusIndicator); } catch (final Exception ex) { conductorProxy.channelEndpointError(statusIndicator.id(), ex); throw ex; } } }
public void openChannel(final DriverConductorProxy conductorProxy) { if (null == multiRcvDestination) { if (conductorProxy.notConcurrent()) { openDatagramChannel(statusIndicator); } else { try { openDatagramChannel(statusIndicator); } catch (final Exception ex) { conductorProxy.channelEndpointError(statusIndicator.id(), ex); throw ex; } } } }
@Test public void shouldCopeWithExceptionKeyFunc() { final RuntimeException ex = new RuntimeException(); try { manager.allocate( "label", CountersManager.DEFAULT_TYPE_ID, (buffer) -> { throw ex; }); } catch (final RuntimeException caught) { assertThat(caught, is(ex)); final AtomicCounter counter = manager.newCounter("new label"); assertThat(counter.id(), is(0)); return; } fail("Should have thrown exception"); }
public int statusIndicatorCounterId() { return statusIndicator.id(); }
public int statusIndicatorCounterId() { return statusIndicator.id(); }
public int statusIndicatorCounterId() { return statusIndicator.id(); }
public int id() { return value.id(); }
public int statusIndicatorCounterId() { return statusIndicator.id(); }
public int counterId() { return counter.id(); }
public int counterId() { return counter.id(); }
public int id() { return value.id(); }
void onAddCounter( final int typeId, final DirectBuffer keyBuffer, final int keyOffset, final int keyLength, final DirectBuffer labelBuffer, final int labelOffset, final int labelLength, final long correlationId, final long clientId) { final AeronClient client = getOrAddClient(clientId); final AtomicCounter counter = countersManager.newCounter( typeId, keyBuffer, keyOffset, keyLength, labelBuffer, labelOffset, labelLength); counterLinks.add(new CounterLink(counter, correlationId, client)); clientProxy.onCounterReady(correlationId, counter.id()); }
void onAddCounter( final int typeId, final DirectBuffer keyBuffer, final int keyOffset, final int keyLength, final DirectBuffer labelBuffer, final int labelOffset, final int labelLength, final long correlationId, final long clientId) { final AeronClient client = getOrAddClient(clientId); final AtomicCounter counter = countersManager.newCounter( typeId, keyBuffer, keyOffset, keyLength, labelBuffer, labelOffset, labelLength); counterLinks.add(new CounterLink(counter, correlationId, client)); clientProxy.onCounterReady(correlationId, counter.id()); }
public void openChannel(final DriverConductorProxy conductorProxy) { if (conductorProxy.notConcurrent()) { openDatagramChannel(statusIndicator); } else { try { openDatagramChannel(statusIndicator); } catch (final Exception ex) { conductorProxy.channelEndpointError(statusIndicator.id(), ex); throw ex; } } }
public void openChannel(final DriverConductorProxy conductorProxy) { if (conductorProxy.notConcurrent()) { openDatagramChannel(statusIndicator); } else { try { openDatagramChannel(statusIndicator); } catch (final Exception ex) { conductorProxy.channelEndpointError(statusIndicator.id(), ex); throw ex; } } }
public void openChannel(final DriverConductorProxy conductorProxy) { if (null == multiRcvDestination) { if (conductorProxy.notConcurrent()) { openDatagramChannel(statusIndicator); } else { try { openDatagramChannel(statusIndicator); } catch (final Exception ex) { conductorProxy.channelEndpointError(statusIndicator.id(), ex); throw ex; } } } }