com.epam.reportportal.service.logs.LoggingContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client-java Show documentation
Show all versions of client-java Show documentation
A application used as an example on how to set up pushing its components to the Central Repository .
The newest version!
package com.epam.reportportal.service.logs;
import com.epam.ta.reportportal.ws.model.log.SaveLogRQ;
import java.util.LinkedList;
import java.util.List;
class LoggingContext {
private static final List logRQList = new LinkedList<>();
public synchronized static void appendLog(SaveLogRQ saveLogRQ) {
logRQList.add(saveLogRQ);
}
public synchronized static List getLogRQList() {
return new LinkedList<>(logRQList);
}
public synchronized static void clearLogRQList() {
logRQList.clear();
}
public synchronized static int size() {
return logRQList.size();
}
public synchronized static boolean isEmpty() {
return logRQList.isEmpty();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy