private static void dissect(final OperationSucceededFlyweight msg, final StringBuilder builder) { builder.append(msg.correlationId()); }
public void operationSucceeded(final long correlationId) { operationSucceeded.correlationId(correlationId); transmit(ON_OPERATION_SUCCESS, buffer, 0, OperationSucceededFlyweight.LENGTH); }
publicationReady.logFileName(SESSION_ID_1 + "-log"); operationSuccess.correlationId(CLOSE_CORRELATION_ID);
@Test public void closingSubscriptionShouldNotifyMediaDriver() { whenReceiveBroadcastOnMessage( ControlProtocolEvents.ON_SUBSCRIPTION_READY, subscriptionReadyBuffer, (buffer) -> { subscriptionReady.correlationId(CORRELATION_ID); return SubscriptionReadyFlyweight.LENGTH; }); final Subscription subscription = conductor.addSubscription(CHANNEL, STREAM_ID_1); whenReceiveBroadcastOnMessage( ControlProtocolEvents.ON_OPERATION_SUCCESS, operationSuccessBuffer, (buffer) -> { operationSuccess.correlationId(CLOSE_CORRELATION_ID); return CorrelatedMessageFlyweight.LENGTH; }); subscription.close(); verify(driverProxy).removeSubscription(CORRELATION_ID); }
final long correlationId = operationSucceeded.correlationId(); if (correlationId == activeCorrelationId)
private static void dissect(final OperationSucceededFlyweight msg, final StringBuilder builder) { builder.append(msg.correlationId()); }
public void operationSucceeded(final long correlationId) { operationSucceeded.correlationId(correlationId); transmit(ON_OPERATION_SUCCESS, buffer, 0, OperationSucceededFlyweight.LENGTH); }
public void operationSucceeded(final long correlationId) { operationSucceeded.correlationId(correlationId); transmit(ON_OPERATION_SUCCESS, buffer, 0, OperationSucceededFlyweight.LENGTH); }
final long correlationId = operationSucceeded.correlationId(); if (correlationId == activeCorrelationId)
final long correlationId = operationSucceeded.correlationId(); if (correlationId == activeCorrelationId)