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

org.dflib.jjava.jupyter.messages.publish.PublishClearOutput Maven / Gradle / Ivy

The newest version!
package org.dflib.jjava.jupyter.messages.publish;

import org.dflib.jjava.jupyter.messages.ContentType;
import org.dflib.jjava.jupyter.messages.MessageType;

public class PublishClearOutput implements ContentType {
    public static final MessageType MESSAGE_TYPE = MessageType.PUBLISH_CLEAR_OUTPUT;

    @Override
    public MessageType getType() {
        return MESSAGE_TYPE;
    }

    public static final PublishClearOutput NOW = new PublishClearOutput(false);
    public static final PublishClearOutput BEFORE_NEXT_OUTPUT = new PublishClearOutput(true);

    /**
     * Wait to clear the output until the
     */
    private final boolean wait;

    private PublishClearOutput(boolean wait) {
        this.wait = wait;
    }

    public boolean shouldWait() {
        return wait;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy