Uses of Interface
org.agrona.ErrorHandler
-
Packages that use ErrorHandler Package Description org.agrona Data structures and utilities useful for building high-performance Java applications.org.agrona.concurrent Concurrent data structures and utilities that support both on and off Java heap usage.org.agrona.concurrent.errors A logger which provides a summary of distinct stacktrace based errors with counts and times. -
-
Uses of ErrorHandler in org.agrona
Subinterfaces of ErrorHandler in org.agrona Modifier and Type Interface Description interface
DelegatingErrorHandler
ErrorHandler
that can insert into a chain of responsibility, so it handles an error and then delegates on to the next in the chain.Methods in org.agrona with parameters of type ErrorHandler Modifier and Type Method Description static void
CloseHelper. close(ErrorHandler errorHandler, java.lang.AutoCloseable closeable)
Close aAutoCloseable
delegating exceptions to theErrorHandler
.static void
CloseHelper. closeAll(ErrorHandler errorHandler, java.lang.AutoCloseable... closeables)
Close all closeables and delegate exceptions to theErrorHandler
.static void
CloseHelper. closeAll(ErrorHandler errorHandler, java.util.Collection<? extends java.lang.AutoCloseable> closeables)
Close all closeables and delegate exceptions to theErrorHandler
.static void
IoUtil. delete(java.io.File file, ErrorHandler errorHandler)
Recursively delete a file or directory tree.static void
IoUtil. deleteIfExists(java.io.File file, ErrorHandler errorHandler)
Delete file only if it already exists.void
DelegatingErrorHandler. next(ErrorHandler errorHandler)
Set the nextErrorHandler
to be called in a chain. -
Uses of ErrorHandler in org.agrona.concurrent
Classes in org.agrona.concurrent that implement ErrorHandler Modifier and Type Class Description class
CountedErrorHandler
AnErrorHandler
which callsAtomicCounter.increment()
before delegating the exception.Fields in org.agrona.concurrent declared as ErrorHandler Modifier and Type Field Description private ErrorHandler
AgentInvoker. errorHandler
private ErrorHandler
AgentRunner. errorHandler
private ErrorHandler
CountedErrorHandler. errorHandler
Constructors in org.agrona.concurrent with parameters of type ErrorHandler Constructor Description AgentInvoker(ErrorHandler errorHandler, AtomicCounter errorCounter, Agent agent)
Create an agent and initialise it.AgentRunner(IdleStrategy idleStrategy, ErrorHandler errorHandler, AtomicCounter errorCounter, Agent agent)
Create an agent runner and initialise it.CountedErrorHandler(ErrorHandler errorHandler, AtomicCounter errorCounter)
Construct a counted error handler with a delegate and counter. -
Uses of ErrorHandler in org.agrona.concurrent.errors
Classes in org.agrona.concurrent.errors that implement ErrorHandler Modifier and Type Class Description class
LoggingErrorHandler
A loggingErrorHandler
that records to aDistinctErrorLog
and if the log is full then overflows to aPrintStream
.
-