synchronized (JournalWriter.SYNCHRONIZER) {
if (state == SHUTDOWN) {
return;
}
logger.debug("Writing journal entry.");
sendRequestToAllTransports(new WriteEntryRequest(this, journalEntry));
currentSize += sizeEstimator.estimateSize(journalEntry);
if (state == FILE_OPEN) {
closeFileIfAppropriate();
}