/** * Returns a new {@code ShardedMessageEnvelope} for the specified {@code id} and {@code message}. * * @param id the identifier. * @param type the type of the message. * @param message the message. * @param dittoHeaders the command headers. * @return the ShardedMessageEnvelope. */ public static ShardedMessageEnvelope of(final String id, final String type, final JsonObject message, final DittoHeaders dittoHeaders) { return new ShardedMessageEnvelope(id, type, message, dittoHeaders); }
/** * Returns a new {@code ShardedMessageEnvelope} for the specified {@code id} and {@code message}. * * @param id the identifier. * @param type the type of the message. * @param message the message. * @param dittoHeaders the command headers. * @return the ShardedMessageEnvelope. */ public static ShardedMessageEnvelope of(final String id, final String type, final JsonObject message, final DittoHeaders dittoHeaders) { return new ShardedMessageEnvelope(id, type, message, dittoHeaders); }