- java.lang.Object
-
- com.airepublic.http.sse.api.SseEvent.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description SseEventbuild()Builds theSseEvent.SseEvent.BuilderwithComment(java.lang.String comment)Adds the event comment.SseEvent.BuilderwithData(java.lang.String data)Adds the event data.SseEvent.BuilderwithId(java.lang.String id)Adds the event id.SseEvent.BuilderwithName(java.lang.String name)Adds the event name.SseEvent.BuilderwithRetry(long retryDelay)Adds the event connection retry delay.
-
-
-
Method Detail
-
withId
public SseEvent.Builder withId(java.lang.String id)
Adds the event id.- Parameters:
id- the event id- Returns:
- the
SseEvent.Builder
-
withName
public SseEvent.Builder withName(java.lang.String name)
Adds the event name.- Parameters:
name- the event name- Returns:
- the
SseEvent.Builder
-
withComment
public SseEvent.Builder withComment(java.lang.String comment)
Adds the event comment.- Parameters:
comment- the event comment- Returns:
- the
SseEvent.Builder
-
withRetry
public SseEvent.Builder withRetry(long retryDelay)
Adds the event connection retry delay.- Parameters:
retryDelay- the event connection retry delay- Returns:
- the
SseEvent.Builder
-
withData
public SseEvent.Builder withData(java.lang.String data)
Adds the event data.- Parameters:
data- the event data- Returns:
- the
SseEvent.Builder
-
-