com.neeve.rog
Interface IRogMessageLogger

All Known Implementing Classes:
RogLog

public interface IRogMessageLogger

Represents a message logger.

This interface defines a message logger. Message loggers are used to persist messages to a log.

Threading:
A logger is not safe for concurrent access by multiple threads.

Method Summary
 void close()
          Close a message logger.
 void flush(boolean sync)
          Flush cached message to the log.
 String getName()
          Get the name of a logger.
 void log(IRogMessage message)
          Log a message.
 void log(IRogMessage message, boolean commitEnd)
          Log a message.
 void open()
          Open a message logger.
 void setContainsInboundMessages(boolean containsInbound)
          Set whether a persister will be used for inbound message logging.
 void setContainsOutboundMessages(boolean containsOutbound)
          Set whether a persister will be used for outbound message logging.
 

Method Detail

getName

String getName()
Get the name of a logger.


setContainsInboundMessages

void setContainsInboundMessages(boolean containsInbound)
Set whether a persister will be used for inbound message logging.

Parameters:
containsInbound - Whether or not the persister will contain inbound messages.

setContainsOutboundMessages

void setContainsOutboundMessages(boolean containsOutbound)
Set whether a persister will be used for outbound message logging.

Parameters:
containsOutbound - Whether or not the persister will contain outbound messages.

open

void open()
          throws Exception
Open a message logger.

Throws:
Exception

log

void log(IRogMessage message,
         boolean commitEnd)
Log a message.

Parameters:
message - The message to log.
commitEnd - Indicates whether to mark this log entry as the end of an application commit leg.
Threading:
This method is not safe for concurrent access with itself or any other methods in this class

log

void log(IRogMessage message)
Log a message.

Parameters:
message - The message to log.
Threading:
This method is not safe for concurrent access with itself or any other methods in this class

Invoking this method is equivalent to invoking log(message, false)


flush

void flush(boolean sync)
Flush cached message to the log.

Parameters:
sync - Indicates if the flush should sync to the durable media
Threading:
This method is not safe for concurrent access with itself or any other methods in this class

close

void close()
Close a message logger.



Copyright © 2015 Neeve Research, LLC. All Rights Reserved.