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();
}
}