Example #1
0
  public void onError(final ErrorCode errorCode, String errorMessage, final long correlationId) {
    if (null == errorMessage) {
      errorMessage = "";
    }

    errorResponse
        .offendingCommandCorrelationId(correlationId)
        .errorCode(errorCode)
        .errorMessage(errorMessage);

    transmit(ON_ERROR, buffer, 0, errorResponse.length());
  }
Example #2
0
  public ClientProxy(final BroadcastTransmitter transmitter) {
    this.transmitter = transmitter;

    errorResponse.wrap(buffer, 0);
    imageReady.wrap(buffer, 0);
    publicationReady.wrap(buffer, 0);
    correlatedMessage.wrap(buffer, 0);
    imageMessage.wrap(buffer, 0);
  }