Public Member Functions | Private Attributes | List of all members
com.google.protobuf.TestUtil.TestLogHandler Class Reference
Inheritance diagram for com.google.protobuf.TestUtil.TestLogHandler:
Inheritance graph
[legend]

Public Member Functions

void close ()
 
void close ()
 
void flush ()
 
void flush ()
 
synchronized List< LogRecord > getStoredLogRecords ()
 
synchronized List< LogRecord > getStoredLogRecords ()
 
synchronized void publish (LogRecord record)
 
synchronized void publish (LogRecord record)
 

Private Attributes

final List< LogRecord > list = new ArrayList<>()
 

Detailed Description

Helper class to test logged messages

Definition at line 3866 of file bloaty/third_party/protobuf/java/core/src/test/java/com/google/protobuf/TestUtil.java.

Member Function Documentation

◆ close() [1/2]

void com.google.protobuf.TestUtil.TestLogHandler.close ( )
inline

◆ close() [2/2]

void com.google.protobuf.TestUtil.TestLogHandler.close ( )
inline

◆ flush() [1/2]

void com.google.protobuf.TestUtil.TestLogHandler.flush ( )
inline

◆ flush() [2/2]

void com.google.protobuf.TestUtil.TestLogHandler.flush ( )
inline

◆ getStoredLogRecords() [1/2]

synchronized List<LogRecord> com.google.protobuf.TestUtil.TestLogHandler.getStoredLogRecords ( )
inline

Returns a snapshot of the logged records.

Definition at line 3883 of file bloaty/third_party/protobuf/java/core/src/test/java/com/google/protobuf/TestUtil.java.

◆ getStoredLogRecords() [2/2]

synchronized List<LogRecord> com.google.protobuf.TestUtil.TestLogHandler.getStoredLogRecords ( )
inline

Returns a snapshot of the logged records.

Definition at line 3895 of file protobuf/java/core/src/test/java/com/google/protobuf/TestUtil.java.

◆ publish() [1/2]

synchronized void com.google.protobuf.TestUtil.TestLogHandler.publish ( LogRecord  record)
inline

Adds the most recently logged record to our list.

Definition at line 3872 of file bloaty/third_party/protobuf/java/core/src/test/java/com/google/protobuf/TestUtil.java.

◆ publish() [2/2]

synchronized void com.google.protobuf.TestUtil.TestLogHandler.publish ( LogRecord  record)
inline

Adds the most recently logged record to our list.

Definition at line 3884 of file protobuf/java/core/src/test/java/com/google/protobuf/TestUtil.java.

Member Data Documentation

◆ list

final List< LogRecord > com.google.protobuf.TestUtil.TestLogHandler.list = new ArrayList<>()
private

We will keep a private list of all logged records

Definition at line 3868 of file bloaty/third_party/protobuf/java/core/src/test/java/com/google/protobuf/TestUtil.java.


The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:07