Package dev.tripswitch
Class TripSwitch.Builder
java.lang.Object
dev.tripswitch.TripSwitch.Builder
- Enclosing class:
- TripSwitch
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and starts the client with default 10-second timeout.Builds and starts the client.failOpen(boolean failOpen) globalTags(Map<String, String> tags) httpClient(okhttp3.OkHttpClient client) ingestSecret(String secret) metadataSyncInterval(Duration interval) onStateChange(TripSwitch.StateChangeListener callback) traceIdExtractor(Supplier<String> extractor)
-
Method Details
-
apiKey
-
ingestSecret
-
failOpen
-
baseUrl
-
onStateChange
-
traceIdExtractor
-
metadataSyncInterval
-
globalTags
-
httpClient
-
build
Builds and starts the client. Blocks until SSE is ready or timeout expires. -
build
Builds and starts the client with default 10-second timeout.
-