org.axonframework.eventstore.fs
Class FileSystemEventMessageWriter

java.lang.Object
  extended by org.axonframework.eventstore.fs.FileSystemEventMessageWriter

public class FileSystemEventMessageWriter
extends Object

Writes a domain event message to the given DataOutput.

Since:
2.0
Author:
Frank Versnel

Constructor Summary
FileSystemEventMessageWriter(DataOutput output, Serializer serializer)
          Creates a new EventMessageWriter writing data to the specified underlying output.
 
Method Summary
 void writeEventMessage(DomainEventMessage eventMessage)
          Writes the given eventMessage to the underling output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemEventMessageWriter

public FileSystemEventMessageWriter(DataOutput output,
                                    Serializer serializer)
Creates a new EventMessageWriter writing data to the specified underlying output.

Parameters:
output - the underlying output
serializer - The serializer to deserialize payload and metadata with
Method Detail

writeEventMessage

public void writeEventMessage(DomainEventMessage eventMessage)
                       throws IOException
Writes the given eventMessage to the underling output.

Parameters:
eventMessage - the EventMessage to write to the underlying output
Throws:
IOException - when any exception occurs writing to the underlying stream


Copyright © 2010-2016. All Rights Reserved.