Class EventBusWriter
- java.lang.Object
-
- java.io.Writer
-
- org.swisspush.gateleen.core.event.EventBusWriter
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.Appendable,java.lang.AutoCloseable
public class EventBusWriter extends java.io.WriterA writer that publishes to the event bus.- Author:
- https://github.com/lbovet [Laurent Bovet]
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEventBusWriter.TransmissionMode
-
Constructor Summary
Constructors Constructor Description EventBusWriter(io.vertx.core.eventbus.EventBus eventBus, java.lang.String address, io.vertx.core.MultiMap deliveryOptionsHeaders, EventBusWriter.TransmissionMode transmissionMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidwrite(char[] cbuf, int off, int len)
-
-
-
Constructor Detail
-
EventBusWriter
public EventBusWriter(io.vertx.core.eventbus.EventBus eventBus, java.lang.String address, io.vertx.core.MultiMap deliveryOptionsHeaders, EventBusWriter.TransmissionMode transmissionMode)
-
-
Method Detail
-
write
public void write(char[] cbuf, int off, int len) throws java.io.IOException- Specified by:
writein classjava.io.Writer- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Specified by:
flushin classjava.io.Writer- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein classjava.io.Writer- Throws:
java.io.IOException
-
-