Public Member Functions | |
boolean | isQueuePoison () |
ILogEntry | getLogEntry () |
ReceivedLogRecord | getLogRecord () |
long | getDelay (TimeUnit unit) |
int | compareTo (Delayed other) |
boolean | equals (Object other) |
Static Public Member Functions | |
DelayedLogEntry | createQueuePoison (long delayTimeMillis) |
Package Functions | |
DelayedLogEntry (ILogEntry logEntry, long delayTimeMillis) | |
long | getDelayTimeMillis () |
Private Member Functions | |
DelayedLogEntry (long delayTimeMillis) | |
Private Attributes | |
long | delayTimeMillis |
boolean | isQueuePoison = false |
int | logRecordIndex |
ILogEntry | logEntry |
long | triggerTimeMillis |
Static Private Attributes | |
final AtomicInteger | logRecordCounter = new AtomicInteger() |
The delayTimeMillis
parameter in the constructor sets the buffer time during which log entries are not yet available for the consumer, so that late arriving records get a chance to be sorted in according to timestamp.
As of ACS 7.0.1 the issue of timestamps that lie in the future (e.g. logs from a different machine with unsync'd time) is addressed in the way that "future" log records will become available to the consumer before the local system time has reached the timestamp.
|
|
|
Ctor used for special queue poison instance
|
|
This method is used by the queue for sorting. |
|
|
|
Equals method, just to be consistent with |
|
This method is used by the queue to determine whether the log record may leave the queue already. |
|
|
|
Returns the
|
|
Returns the log record that was wrapped for sorting inside the queue. The returned object represents the log record as it was received from the logging service. |
|
True if this entry designates the end of the queue. According to BlockingQueue, this element is called the "poison".
|
|
delay for sorting by timestamp |
|
|
|
|
|
|
|
|
|
|