public long addRcvDestination(final long registrationId, final String endpointChannel) { final long correlationId = toDriverCommandBuffer.nextCorrelationId(); destinationMessage .registrationCorrelationId(registrationId) .channel(endpointChannel) .correlationId(correlationId); if (!toDriverCommandBuffer.write(ADD_RCV_DESTINATION, buffer, 0, destinationMessage.length())) { throw new AeronException("could not write rcv destination command"); } return correlationId; }
public DriverProxy(final RingBuffer toDriverCommandBuffer, final long clientId) { this.toDriverCommandBuffer = toDriverCommandBuffer; publicationMessage.wrap(buffer, 0); subscriptionMessage.wrap(buffer, 0); correlatedMessage.wrap(buffer, 0); removeMessage.wrap(buffer, 0); destinationMessage.wrap(buffer, 0); counterMessage.wrap(buffer, 0); correlatedMessage.clientId(clientId); }
private static void dissect(final DestinationMessageFlyweight msg, final StringBuilder builder) { builder .append(msg.channel()) .append(' ') .append(msg.registrationCorrelationId()) .append(" [") .append(msg.clientId()) .append(':') .append(msg.correlationId()) .append(']'); }
destinationMsgFlyweight.wrap(buffer, index); correlationId = destinationMsgFlyweight.correlationId(); final long channelRegistrationId = destinationMsgFlyweight.registrationCorrelationId(); final String channel = destinationMsgFlyweight.channel(); destinationMsgFlyweight.wrap(buffer, index); correlationId = destinationMsgFlyweight.correlationId(); final long channelRegistrationId = destinationMsgFlyweight.registrationCorrelationId(); final String channel = destinationMsgFlyweight.channel(); destinationMsgFlyweight.wrap(buffer, index); correlationId = destinationMsgFlyweight.correlationId(); final long channelRegistrationId = destinationMsgFlyweight.registrationCorrelationId(); final String channel = destinationMsgFlyweight.channel(); destinationMsgFlyweight.wrap(buffer, index); correlationId = destinationMsgFlyweight.correlationId(); final long channelRegistrationId = destinationMsgFlyweight.registrationCorrelationId(); final String channel = destinationMsgFlyweight.channel();
private final RemoveMessageFlyweight removeMessage = new RemoveMessageFlyweight(); private final CorrelatedMessageFlyweight correlatedMessage = new CorrelatedMessageFlyweight(); private final DestinationMessageFlyweight destinationMessage = new DestinationMessageFlyweight(); private final CounterMessageFlyweight counterMessage = new CounterMessageFlyweight(); private final RingBuffer toDriverCommandBuffer;
destinationMsgFlyweight.wrap(buffer, index); correlationId = destinationMsgFlyweight.correlationId(); final long channelRegistrationId = destinationMsgFlyweight.registrationCorrelationId(); final String channel = destinationMsgFlyweight.channel(); destinationMsgFlyweight.wrap(buffer, index); correlationId = destinationMsgFlyweight.correlationId(); final long channelRegistrationId = destinationMsgFlyweight.registrationCorrelationId(); final String channel = destinationMsgFlyweight.channel(); destinationMsgFlyweight.wrap(buffer, index); correlationId = destinationMsgFlyweight.correlationId(); final long channelRegistrationId = destinationMsgFlyweight.registrationCorrelationId(); final String channel = destinationMsgFlyweight.channel(); destinationMsgFlyweight.wrap(buffer, index); correlationId = destinationMsgFlyweight.correlationId(); final long channelRegistrationId = destinationMsgFlyweight.registrationCorrelationId(); final String channel = destinationMsgFlyweight.channel();
private final RemoveMessageFlyweight removeMessage = new RemoveMessageFlyweight(); private final CorrelatedMessageFlyweight correlatedMessage = new CorrelatedMessageFlyweight(); private final DestinationMessageFlyweight destinationMessage = new DestinationMessageFlyweight(); private final CounterMessageFlyweight counterMessage = new CounterMessageFlyweight(); private final RingBuffer toDriverCommandBuffer;
public long removeDestination(final long registrationId, final String endpointChannel) { final long correlationId = toDriverCommandBuffer.nextCorrelationId(); destinationMessage .registrationCorrelationId(registrationId) .channel(endpointChannel) .correlationId(correlationId); if (!toDriverCommandBuffer.write(REMOVE_DESTINATION, buffer, 0, destinationMessage.length())) { throw new AeronException("could not write destination command"); } return correlationId; }
destinationMsgFlyweight.wrap(buffer, index); correlationId = destinationMsgFlyweight.correlationId(); final long channelRegistrationId = destinationMsgFlyweight.registrationCorrelationId(); final String channel = destinationMsgFlyweight.channel(); destinationMsgFlyweight.wrap(buffer, index); correlationId = destinationMsgFlyweight.correlationId(); final long channelRegistrationId = destinationMsgFlyweight.registrationCorrelationId(); final String channel = destinationMsgFlyweight.channel(); destinationMsgFlyweight.wrap(buffer, index); correlationId = destinationMsgFlyweight.correlationId(); final long channelRegistrationId = destinationMsgFlyweight.registrationCorrelationId(); final String channel = destinationMsgFlyweight.channel(); destinationMsgFlyweight.wrap(buffer, index); correlationId = destinationMsgFlyweight.correlationId(); final long channelRegistrationId = destinationMsgFlyweight.registrationCorrelationId(); final String channel = destinationMsgFlyweight.channel();
private static void dissect(final DestinationMessageFlyweight msg, final StringBuilder builder) { builder .append(msg.channel()) .append(' ') .append(msg.registrationCorrelationId()) .append(" [") .append(msg.clientId()) .append(':') .append(msg.correlationId()) .append(']'); }
case CMD_IN_REMOVE_RCV_DESTINATION: final DestinationMessageFlyweight destinationMessageFlyweight = DESTINATION_MSG; destinationMessageFlyweight.wrap(buffer, offset + relativeOffset); dissect(destinationMessageFlyweight, builder); break;
private final RemoveMessageFlyweight removeMessage = new RemoveMessageFlyweight(); private final CorrelatedMessageFlyweight correlatedMessage = new CorrelatedMessageFlyweight(); private final DestinationMessageFlyweight destinationMessage = new DestinationMessageFlyweight(); private final CounterMessageFlyweight counterMessage = new CounterMessageFlyweight(); private final RingBuffer toDriverCommandBuffer;
public long removeRcvDestination(final long registrationId, final String endpointChannel) { final long correlationId = toDriverCommandBuffer.nextCorrelationId(); destinationMessage .registrationCorrelationId(registrationId) .channel(endpointChannel) .correlationId(correlationId); if (!toDriverCommandBuffer.write(REMOVE_RCV_DESTINATION, buffer, 0, destinationMessage.length())) { throw new AeronException("could not write rcv destination command"); } return correlationId; }
public DriverProxy(final RingBuffer toDriverCommandBuffer, final long clientId) { this.toDriverCommandBuffer = toDriverCommandBuffer; publicationMessage.wrap(buffer, 0); subscriptionMessage.wrap(buffer, 0); correlatedMessage.wrap(buffer, 0); removeMessage.wrap(buffer, 0); destinationMessage.wrap(buffer, 0); counterMessage.wrap(buffer, 0); correlatedMessage.clientId(clientId); }
public long addDestination(final long registrationId, final String endpointChannel) { final long correlationId = toDriverCommandBuffer.nextCorrelationId(); destinationMessage .registrationCorrelationId(registrationId) .channel(endpointChannel) .correlationId(correlationId); if (!toDriverCommandBuffer.write(ADD_DESTINATION, buffer, 0, destinationMessage.length())) { throw new AeronException("could not write destination command"); } return correlationId; }
public DriverProxy(final RingBuffer toDriverCommandBuffer, final long clientId) { this.toDriverCommandBuffer = toDriverCommandBuffer; publicationMessage.wrap(buffer, 0); subscriptionMessage.wrap(buffer, 0); correlatedMessage.wrap(buffer, 0); removeMessage.wrap(buffer, 0); destinationMessage.wrap(buffer, 0); counterMessage.wrap(buffer, 0); correlatedMessage.clientId(clientId); }
public long addDestination(final long registrationId, final String endpointChannel) { final long correlationId = toDriverCommandBuffer.nextCorrelationId(); destinationMessage .registrationCorrelationId(registrationId) .channel(endpointChannel) .correlationId(correlationId); if (!toDriverCommandBuffer.write(ADD_DESTINATION, buffer, 0, destinationMessage.length())) { throw new AeronException("could not write destination command"); } return correlationId; }
case CMD_IN_REMOVE_RCV_DESTINATION: final DestinationMessageFlyweight destinationMessageFlyweight = DESTINATION_MSG; destinationMessageFlyweight.wrap(buffer, offset + relativeOffset); dissect(destinationMessageFlyweight, builder); break;
public long removeRcvDestination(final long registrationId, final String endpointChannel) { final long correlationId = toDriverCommandBuffer.nextCorrelationId(); destinationMessage .registrationCorrelationId(registrationId) .channel(endpointChannel) .correlationId(correlationId); if (!toDriverCommandBuffer.write(REMOVE_RCV_DESTINATION, buffer, 0, destinationMessage.length())) { throw new AeronException("could not write rcv destination command"); } return correlationId; }
public long addRcvDestination(final long registrationId, final String endpointChannel) { final long correlationId = toDriverCommandBuffer.nextCorrelationId(); destinationMessage .registrationCorrelationId(registrationId) .channel(endpointChannel) .correlationId(correlationId); if (!toDriverCommandBuffer.write(ADD_RCV_DESTINATION, buffer, 0, destinationMessage.length())) { throw new AeronException("could not write rcv destination command"); } return correlationId; }