class PeriodicFlushing extends Receiver
Periodically flushes a Receiver at a specified frequency. The receiver may flush more often than this interval in other scenarios (e.g., when buffer capacity is reached or when expressly requested).
The interval is dependent only on flushes that are initiated from the receiver, either explicitly through its
flush() method or automatically through the periodic schedule. It does not take into account flushes that
occur in the underlying objects.
- Alphabetic
- By Inheritance
- PeriodicFlushing
- Receiver
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def close(): Unit
Closes the receiver.
Closes the receiver. This means that the resources held by this receiver should be released in preparation for it being decommissioned. This usually happens before system shutdown, but it does not necessarily mean that this receiver will not receive any more entries. Receviers can be closed simply to release file system or network resources.
This method must handle any flushing that is required prior to any resource deallocation. Timber will not necessarily call
flush()beforeclose().- Definition Classes
- PeriodicFlushing → Receiver
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flush(): Unit
Tells this receiver to flush any buffered entries that it has received but not yet fully processed.
Tells this receiver to flush any buffered entries that it has received but not yet fully processed. This makes it possible for this receiver to improve performance by batching I/O work.
- Definition Classes
- PeriodicFlushing → Receiver
- def flushAtLeastEvery(duration: FiniteDuration): Receiver
- Definition Classes
- Receiver
- def flushImmediately: Receiver
- Definition Classes
- Receiver
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def receive(entry: Entry): Unit
Receives an Entry for processing.
Receives an Entry for processing. There is no initialization method for receivers, so this method must handle resource initialization on the first call after construction or after closure.
- entry
the entry being received by this receiver
- Definition Classes
- PeriodicFlushing → Receiver
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withLocking: Receiver
- Definition Classes
- Receiver
- def withQueueing: Receiver
- Definition Classes
- Receiver