Browse Source

MINOR: fix JavaDoc (#9217)

Reviewer: John Roesler <john@confluent.io>
pull/9320/head
Matthias J. Sax 4 years ago committed by GitHub
parent
commit
d2c978c98e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      streams/src/main/java/org/apache/kafka/streams/errors/StreamsNotStartedException.java
  2. 3
      streams/src/main/java/org/apache/kafka/streams/processor/api/ProcessorContext.java

5
streams/src/main/java/org/apache/kafka/streams/errors/StreamsNotStartedException.java

@ -17,11 +17,12 @@ @@ -17,11 +17,12 @@
package org.apache.kafka.streams.errors;
import org.apache.kafka.streams.KafkaStreams;
import org.apache.kafka.streams.KafkaStreams.State;
/**
* Indicates that Kafka Streams is in state {@link KafkaStreams.State#CREATED CREATED} and thus state stores cannot be queries yet.
* Indicates that Kafka Streams is in state {@link State CREATED} and thus state stores cannot be queries yet.
* To query state stores, it's required to first start Kafka Streams via {@link KafkaStreams#start()}.
* You can retry to query the state after the state transitioned to {@link KafkaStreams.State#RUNNING RUNNING}.
* You can retry to query the state after the state transitioned to {@link State RUNNING}.
*/
public class StreamsNotStartedException extends InvalidStateStoreException {

3
streams/src/main/java/org/apache/kafka/streams/processor/api/ProcessorContext.java

@ -21,7 +21,6 @@ import org.apache.kafka.common.serialization.Serde; @@ -21,7 +21,6 @@ import org.apache.kafka.common.serialization.Serde;
import org.apache.kafka.streams.StreamsMetrics;
import org.apache.kafka.streams.errors.StreamsException;
import org.apache.kafka.streams.processor.Cancellable;
import org.apache.kafka.streams.processor.Processor;
import org.apache.kafka.streams.processor.PunctuationType;
import org.apache.kafka.streams.processor.Punctuator;
import org.apache.kafka.streams.processor.StateRestoreCallback;
@ -106,7 +105,7 @@ public interface ProcessorContext<KForward, VForward> { @@ -106,7 +105,7 @@ public interface ProcessorContext<KForward, VForward> {
/**
* Schedules a periodic operation for processors. A processor may call this method during
* {@link Processor#init(org.apache.kafka.streams.processor.ProcessorContext) initialization} or
* {@link Processor#init(ProcessorContext) initialization} or
* {@link Processor#process(Object, Object) processing} to
* schedule a periodic callback &mdash; called a punctuation &mdash; to {@link Punctuator#punctuate(long)}.
* The type parameter controls what notion of time is used for punctuation:

Loading…
Cancel
Save