RESULT - The result type of a send operation. Sync methods can use VoidC - The configuration class for the notifier@Unstable
public abstract class RollbarBase<RESULT,C extends CommonConfig>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected BodyFactory |
bodyFactory |
protected C |
config |
protected java.util.concurrent.locks.Lock |
configReadLock |
protected java.util.concurrent.locks.ReadWriteLock |
configReadWriteLock |
protected java.util.concurrent.locks.Lock |
configWriteLock |
protected PayloadTruncator |
payloadTruncator |
| Modifier | Constructor and Description |
|---|---|
protected |
RollbarBase(C config,
BodyFactory bodyFactory,
RESULT emptyResult) |
| Modifier and Type | Method and Description |
|---|---|
protected com.rollbar.api.payload.data.Data |
buildData(CommonConfig config,
ThrowableWrapper error,
java.util.Map<java.lang.String,java.lang.Object> custom,
java.lang.String description,
com.rollbar.api.payload.data.Level level,
boolean isUncaught) |
protected void |
configure(C config)
Replace the configuration of this instance directly.
|
protected com.rollbar.api.payload.data.Level |
level(CommonConfig config,
java.lang.Throwable error)
Get the level of the error or message.
|
protected RESULT |
process(ThrowableWrapper error,
java.util.Map<java.lang.String,java.lang.Object> custom,
java.lang.String description,
com.rollbar.api.payload.data.Level level,
boolean isUncaught) |
protected void |
processAppPackages(CommonConfig config) |
protected abstract RESULT |
sendPayload(C config,
com.rollbar.api.payload.Payload payload) |
protected RollbarThrowableWrapper |
wrapThrowable(java.lang.Throwable error) |
protected BodyFactory bodyFactory
protected PayloadTruncator payloadTruncator
protected C extends CommonConfig config
protected final java.util.concurrent.locks.ReadWriteLock configReadWriteLock
protected final java.util.concurrent.locks.Lock configReadLock
protected final java.util.concurrent.locks.Lock configWriteLock
protected RollbarBase(C config, BodyFactory bodyFactory, RESULT emptyResult)
protected void configure(C config)
config - the new configuration.protected void processAppPackages(CommonConfig config)
protected com.rollbar.api.payload.data.Level level(CommonConfig config, java.lang.Throwable error)
config - the current Config.error - the error.protected com.rollbar.api.payload.data.Data buildData(CommonConfig config, ThrowableWrapper error, java.util.Map<java.lang.String,java.lang.Object> custom, java.lang.String description, com.rollbar.api.payload.data.Level level, boolean isUncaught)
protected RESULT process(ThrowableWrapper error, java.util.Map<java.lang.String,java.lang.Object> custom, java.lang.String description, com.rollbar.api.payload.data.Level level, boolean isUncaught)
protected RollbarThrowableWrapper wrapThrowable(java.lang.Throwable error)