All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vlingo.lattice.exchange.feed.FeedMessageBody Maven / Gradle / Ivy

Go to download

Tooling for reactive Domain-Driven Design projects that are highly concurrent. Includes compute grid, actor caching, spaces, cross-node cluster messaging, CQRS, and Event Sourcing support.

There is a newer version: 1.7.5
Show newest version
// Copyright © 2012-2020 VLINGO LABS. All rights reserved.
//
// This Source Code Form is subject to the terms of the
// Mozilla Public License, v. 2.0. If a copy of the MPL
// was not distributed with this file, You can obtain
// one at https://mozilla.org/MPL/2.0/.

package io.vlingo.lattice.exchange.feed;

/**
 * A message body that is provided by {@code FeedMessage#body}.
 */
public class FeedMessageBody {
  /** The String value representation of the body. */
  public final String value;

  /**
   * Answer a new FeedMessageBody with {@code body}.
   * @param body the String representation of the body
   * @return FeedMessageBody
   */
  public static FeedMessageBody with(final String body) {
    return new FeedMessageBody(body);
  }

  /**
   * Construct my default state.
   * @param body the String representation to assign as my body
   */
  public FeedMessageBody(final String body) {
    assert(body != null);
    this.value = body;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy