Class EventBusWriter
- java.lang.Object
-
- java.io.Writer
-
- org.swisspush.gateleen.core.event.EventBusWriter
-
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
public class EventBusWriter extends Writer
A 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, 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, String address, io.vertx.core.MultiMap deliveryOptionsHeaders, EventBusWriter.TransmissionMode transmissionMode)
-
-
Method Detail
-
write
public void write(char[] cbuf, int off, int len) throws IOException- Specified by:
writein classWriter- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
-