org.axonframework.eventstore.fs
Class FileSystemEventMessageWriter
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileSystemEventMessageWriter
public FileSystemEventMessageWriter(DataOutput output,
Serializer serializer)
- Creates a new EventMessageWriter writing data to the specified underlying
output
.
- Parameters:
output
- the underlying outputserializer
- The serializer to deserialize payload and metadata with
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.