Package com.styra.opa.openapi.utils
Class EventStreamMessage
- java.lang.Object
-
- com.styra.opa.openapi.utils.EventStreamMessage
-
public class EventStreamMessage extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description EventStreamMessage(java.util.Optional<java.lang.String> event, java.util.Optional<java.lang.String> id, java.util.Optional<java.lang.Integer> retryMs, java.lang.String data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
data()
java.util.Optional<java.lang.String>
event()
java.util.Optional<java.lang.String>
id()
boolean
isEmpty()
java.util.Optional<java.lang.Integer>
retryMs()
java.lang.String
toString()
-
-
-
Method Detail
-
event
public java.util.Optional<java.lang.String> event()
-
id
public java.util.Optional<java.lang.String> id()
-
retryMs
public java.util.Optional<java.lang.Integer> retryMs()
-
data
public java.lang.String data()
-
isEmpty
public boolean isEmpty()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-