/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.apache.qpid.protonj2.client;

/**
 * A {@link Message} type that supports writing the message contents in multiple
 * chunks as the message data becomes available.  The body type for this type of
 * message is always a byte array.
 */
public interface StreamableMessage extends AdvancedMessage<byte[]> {

    /**
     * Marks the currently streaming message as being aborted.
     * <p>
     * Simply marking a {@link StreamableMessage} as being aborted does not signal
     * the remote peer that the message was aborted, the message must be sent a final
     * time using the {@link Sender} that was used to stream it originally.  A
     * {@link StreamableMessage} cannot be aborted following the final write of the
     * message payload.
     *
     * @return this {@link StreamableMessage} instance.
     */
    StreamableMessage abort();

    /**
     * @return true if this message has been marked as aborted previously.
     */
    boolean isAborted();

    /**
     * Marks the currently streaming message as being complete.
     * <p>
     * Simply marking a {@link StreamableMessage} as being complete does not signal
     * the remote peer that the message was completed, the message must be sent a final
     * time using the {@link Sender} that was used to stream it originally.  A
     * {@link StreamableMessage} cannot be completed following a message write that
     * was marked as being aborted using the {@link #abort()} method.
     *
     * @return this {@link StreamableMessage} instance.
     */
    StreamableMessage complete();

    /**
     * @return true if this message has been marked as completed previously.
     */
    boolean isComplete();

    StreamableMessage writeBytes(byte[] buffer);

    StreamableMessage writeBytes(byte[] buffer, int offset, int length);

}

@@ -975,75 +975,25 @@
 ble.
-  The body type for this type of%0A * message is always a byte array.
+%0A *%0A * @param %3CE%3E
 %0A */
@@ -1027,16 +1027,19 @@
 eMessage
+%3CE%3E
  extends
@@ -1055,22 +1055,17 @@
 Message%3C
-byte%5B%5D
+E
 %3E %7B%0A%0A   
@@ -1591,16 +1591,19 @@
 eMessage
+%3CE%3E
  abort()
@@ -2302,16 +2302,19 @@
 eMessage
+%3CE%3E
  complet
@@ -2443,130 +2443,6 @@
 );%0A%0A
-    StreamableMessage writeBytes(byte%5B%5D buffer);%0A%0A    StreamableMessage writeBytes(byte%5B%5D buffer, int offset, int length);%0A%0A
 %7D%0A

Remove some APIs that don't apply to this interface any longer