This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: '2' | |
services: | |
zookeeper: | |
image: confluentinc/cp-zookeeper:7.0.1 | |
hostname: zookeeper | |
container_name: zookeeper | |
ports: | |
- "2181:2181" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"schema": { | |
"type": "struct", | |
"fields": [{ | |
"type": "struct", | |
"fields": [{ | |
"type": "int32", | |
"optional": false, | |
"field": "id" | |
}, { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"source": { | |
"server": "dbserver1" | |
}, | |
"position": { | |
"ts_sec": 1647635980, | |
"file": "binlog.000004", | |
"pos": 157, | |
"snapshot": true | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "customer-connector", | |
"config": { | |
"connector.class": "io.debezium.connector.mysql.MySqlConnector", | |
"database.user": "root", | |
"database.server.id": "184054", | |
"tasks.max": "1", | |
"database.hostname": "127.0.0.1", | |
"database.password": "root", | |
"database.history.kafka.bootstrap.servers": "127.0.0.1:9092", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
connector.class=io.debezium.connector.mysql.MySqlConnector | |
tasks.max=1 | |
database.hostname=127.0.0.1 | |
database.port=3306 | |
database.user=root | |
database.password=root | |
database.server.id=184054 | |
database.server.name=dbserver1 | |
database.include.list=debezium | |
database.history.kafka.bootstrap.servers=127.0.0.1:9092 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "3.1.0", | |
"commit": "37edeed0777bacb3", | |
"kafka_cluster_id": "9iBZs3JhRruUOjBUh02cew" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "customer-connector", | |
"config": { | |
"connector.class": "io.debezium.connector.mysql.MySqlConnector", | |
"tasks.max": "1", | |
"database.hostname": "127.0.0.1", | |
"database.port": "3306", | |
"database.user": "root", | |
"database.password": "root", | |
"database.server.id": "184054", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static String withSealedClass(SampleSealed sampleSealedClassApp) { | |
return switch (sampleSealedClassApp) { //error - Switch statement doesn't cover all possible value | |
case ClassTwo classTwo -> "Sample class two"; | |
case ClassThree classThree -> "Sample class three"; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sealed interface SampleSealed permits ClassOne, ClassTwo, ClassThree { | |
} | |
final class ClassOne implements SampleSealed { | |
} | |
final class ClassTwo implements SampleSealed { | |
} | |
record ClassThree(String name) implements SampleSealed { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public sealed class SampleSealedClassApp { | |
final class SampleClass extends SampleSealedClassApp{} | |
final class SampleSecondClass extends SampleSealedClassApp{} | |
} |
NewerOlder