Package com.threepillar.labs.si.aws

Examples of com.threepillar.labs.si.aws.MessagePacket.assemble()


  protected abstract void dispatch(Message<?> message);

  public void onNotification(String notification) {
    MessagePacket packet = MessagePacket.fromJSON(notification);
    dispatch(packet.assemble());
  }
}
View Full Code Here


        if (qMessageJSON.has(SNS_MESSAGE_KEY)) { // posted from SNS
          payloadJSON = qMessageJSON.getString(SNS_MESSAGE_KEY);
          // XXX: other SNS attributes?
        }
        MessagePacket packet = MessagePacket.fromJSON(payloadJSON);
        MessageBuilder<?> builder = MessageBuilder.fromMessage(packet
            .assemble());
        if (qMessage != null) {
          builder.setHeader(SqsHeaders.MSG_RECEIPT_HANDLE,
              qMessage.getReceiptHandle());
          builder.setHeader(SqsHeaders.AWS_MESSAGE_ID,
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.