public class FileSystemEventMessageReader extends Object implements Closeable
SerializedDomainEventData
.Constructor and Description |
---|
FileSystemEventMessageReader(DataInput input)
Creates a new EventMessageReader that reads the data from the given
input and deserializes payload
and meta data using the given serializer . |
public FileSystemEventMessageReader(DataInput input)
input
and deserializes payload
and meta data using the given serializer
.input
- The input providing access to the written datapublic SerializedDomainEventData readEventMessage() throws IOException
IOException
- when an error occurs reading from the underlying inputEOFException
- when the end of the stream was reached before the message was entirely readpublic void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2010-2014. All Rights Reserved.