8000 feat: InboundEventSource wip · Sgitario/java-operator-sdk@d372f30 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit d372f30

Browse files
committed
feat: InboundEventSource wip
1 parent 86245ca commit d372f30

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package io.javaoperatorsdk.operator.processing.event.internal;
2+
3+
import io.javaoperatorsdk.operator.OperatorException;
4+
import io.javaoperatorsdk.operator.processing.event.AbstractEventSource;
5+
6+
public class InboundEventSource<T> extends LifecycleAwareEventSource {
7+
8+
public void receiveEvent(T event) {
9+
10+
}
11+
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package io.javaoperatorsdk.operator.processing.event.internal;
2+
3+
import io.javaoperatorsdk.operator.OperatorException;
4+
import io.javaoperatorsdk.operator.processing.event.AbstractEventSource;
5+
6+
public abstract class LifecycleAwareEventSource extends AbstractEventSource {
7+
8+
protected volatile boolean started = false;
9+
10+
@Override
11+
public void start() throws OperatorException {
12+
started = true;
13+
}
14+
15+
@Override
16+
public void stop() throws OperatorException {
17+
started = false;
18+
}
19+
}

0 commit comments

Comments
 (0)
0