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

io.snice.protocol.Response Maven / Gradle / Ivy

package io.snice.protocol;

public interface Response extends Transaction {

    /**
     * Indicates whether or not this {@link Response} is considered a "final" response and as such,
     * one that would complete the {@link Transaction}.
     */
    boolean isFinal();

    @Override
    default boolean isResponse() {
        return true;
    }

    @Override
    default Response toResponse() {
        return this;
    }

    interface Builder {

        Builder isFinal(boolean value);

        Response build();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy