Uses of Interface
org.agrona.ErrorHandler
Packages that use ErrorHandler
Package
Description
Data structures and utilities useful for building high-performance Java applications.
Concurrent data structures and utilities that support both on and off Java heap usage.
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.agronaModifier and TypeInterfaceDescriptioninterface
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 ErrorHandlerModifier and TypeMethodDescriptionstatic void
CloseHelper.close
(ErrorHandler errorHandler, AutoCloseable closeable) Close aAutoCloseable
delegating exceptions to theErrorHandler
.static void
CloseHelper.closeAll
(ErrorHandler errorHandler, AutoCloseable... closeables) Close all closeables and delegate exceptions to theErrorHandler
.static void
CloseHelper.closeAll
(ErrorHandler errorHandler, Collection<? extends AutoCloseable> closeables) Close all closeables and delegate exceptions to theErrorHandler
.static void
IoUtil.delete
(File file, ErrorHandler errorHandler) Recursively delete a file or directory tree.static void
IoUtil.deleteIfExists
(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 ErrorHandlerModifier and TypeClassDescriptionclass
AnErrorHandler
which callsAtomicCounter.increment()
before delegating the exception.Fields in org.agrona.concurrent declared as ErrorHandlerModifier and TypeFieldDescriptionprivate final ErrorHandler
AgentInvoker.errorHandler
private final ErrorHandler
AgentRunner.errorHandler
private final ErrorHandler
CountedErrorHandler.errorHandler
Constructors in org.agrona.concurrent with parameters of type ErrorHandlerModifierConstructorDescriptionAgentInvoker
(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 ErrorHandlerModifier and TypeClassDescriptionclass
A loggingErrorHandler
that records to aDistinctErrorLog
and if the log is full then overflows to aPrintStream
.