public abstract class SentryClientFactory extends Object
SentryClient
instances.Constructor and Description |
---|
SentryClientFactory() |
Modifier and Type | Method and Description |
---|---|
abstract SentryClient |
createSentryClient(Dsn dsn)
Creates an instance of Sentry given a DSN.
|
static SentryClient |
sentryClient()
Creates an instance of Sentry by discovering the DSN.
|
static SentryClient |
sentryClient(String dsn)
Creates an instance of Sentry using the provided DSN.
|
static SentryClient |
sentryClient(String dsn,
SentryClientFactory sentryClientFactory)
Creates an instance of Sentry using the provided DSN and the specified factory.
|
String |
toString() |
public static SentryClient sentryClient()
public static SentryClient sentryClient(String dsn)
dsn
- Data Source Name of the Sentry server.public static SentryClient sentryClient(String dsn, SentryClientFactory sentryClientFactory)
dsn
- Data Source Name of the Sentry server.sentryClientFactory
- SentryClientFactory instance to use, or null to do a config lookup.public abstract SentryClient createSentryClient(Dsn dsn)
dsn
- Data Source Name of the Sentry server.RuntimeException
- when an instance couldn't be created.Copyright © 2012–2018. All rights reserved.