Server

class Server @JvmOverloads constructor(val graph: URI, plugin: Server.Plugin = Plugin.DSL.plugin {}, val address: InetSocketAddress = InetSocketAddress("localhost", 8787), parallelism: Int? = null) : Runnable

Server proxies Bolt data to a Neo4j (5+ compatible) database and performs dynamic message transformation through the plugin.

Parameters

plugin

the Server.Plugin to use to intercept proxied messages and observe server events

Constructors

Link copied to clipboard
constructor(graph: URI, plugin: Server.Plugin = Plugin.DSL.plugin {}, address: InetSocketAddress = InetSocketAddress("localhost", 8787), parallelism: Int? = null)

Types

Link copied to clipboard

The Server established a connection.

Link copied to clipboard
sealed interface Connection

A proxy connection.

Link copied to clipboard

The Server closed the connection.

Link copied to clipboard
sealed interface Event

A Server event.

Link copied to clipboard
interface Plugin

Server.Plugin enables Server functionality to be augmented and/or observed.

Link copied to clipboard
data class Proxied(val session: Bolt.Session, val source: Server.Connection, val received: Bolt.Message, val destination: Server.Connection, val sent: Bolt.Message) : Record, Server.Event

The Server proxied the intercepted Bolt.Message from the source to the destination.

Link copied to clipboard
data object Started : Server.Event

The Server has started.

Link copied to clipboard
data object Stopped : Server.Event

The Server has stopped.

Properties

Link copied to clipboard
Link copied to clipboard
val graph: URI

the URI of the graph database to proxy data to/from

Functions

Link copied to clipboard
open override fun run()

Start the proxy server on the address, connecting to the graph.