GoldenGateConnectionManager / com.fitbit.goldengate.node.stack / StackPeerBuilder

StackPeerBuilder

class StackPeerBuilder<T : StackService> : PeerBuilder<T, BluetoothAddressNodeKey>

Builds a StackPeer with a String key

Parameters

clazz - The Class of the StackService to use with this StackPeer

stackConfig - the StackConfig of the StackPeer's Stack

buildStackPeer - function for building a StackPeer

Constructors

<init>

StackPeerBuilder(clazz: Class<in T>, peerRole: PeerRole, stackConfig: StackConfig, buildStackPeer: (BluetoothAddressNodeKey) -> StackPeer<T>)

Builds a StackPeer with a String key

Functions

build

fun build(key: BluetoothAddressNodeKey): StackPeer<T>

Build the StackPeer, connect it and emit it via a Single

doesBuild

fun doesBuild(peer: Peer<*>): Boolean

Tests if the given Peer is the same as the one this can build