public static class OutboundSseEventImpl.BuilderImpl extends Object implements javax.ws.rs.sse.OutboundSseEvent.Builder
Constructor and Description |
---|
BuilderImpl() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.sse.OutboundSseEvent |
build() |
javax.ws.rs.sse.OutboundSseEvent.Builder |
comment(String comment) |
javax.ws.rs.sse.OutboundSseEvent.Builder |
data(Class type,
Object data) |
javax.ws.rs.sse.OutboundSseEvent.Builder |
data(javax.ws.rs.core.GenericType type,
Object data) |
javax.ws.rs.sse.OutboundSseEvent.Builder |
data(Object data) |
javax.ws.rs.sse.OutboundSseEvent.Builder |
id(String id) |
javax.ws.rs.sse.OutboundSseEvent.Builder |
mediaType(javax.ws.rs.core.MediaType mediaType) |
javax.ws.rs.sse.OutboundSseEvent.Builder |
name(String name) |
javax.ws.rs.sse.OutboundSseEvent.Builder |
reconnectDelay(long milliseconds) |
public javax.ws.rs.sse.OutboundSseEvent.Builder name(String name)
name
in interface javax.ws.rs.sse.OutboundSseEvent.Builder
public javax.ws.rs.sse.OutboundSseEvent.Builder id(String id)
id
in interface javax.ws.rs.sse.OutboundSseEvent.Builder
public javax.ws.rs.sse.OutboundSseEvent.Builder reconnectDelay(long milliseconds)
reconnectDelay
in interface javax.ws.rs.sse.OutboundSseEvent.Builder
public javax.ws.rs.sse.OutboundSseEvent.Builder mediaType(javax.ws.rs.core.MediaType mediaType)
mediaType
in interface javax.ws.rs.sse.OutboundSseEvent.Builder
public javax.ws.rs.sse.OutboundSseEvent.Builder comment(String comment)
comment
in interface javax.ws.rs.sse.OutboundSseEvent.Builder
public javax.ws.rs.sse.OutboundSseEvent.Builder data(Class type, Object data)
data
in interface javax.ws.rs.sse.OutboundSseEvent.Builder
public javax.ws.rs.sse.OutboundSseEvent.Builder data(javax.ws.rs.core.GenericType type, Object data)
data
in interface javax.ws.rs.sse.OutboundSseEvent.Builder
public javax.ws.rs.sse.OutboundSseEvent.Builder data(Object data)
data
in interface javax.ws.rs.sse.OutboundSseEvent.Builder
public javax.ws.rs.sse.OutboundSseEvent build()
build
in interface javax.ws.rs.sse.OutboundSseEvent.Builder
Copyright © 2020 JBoss by Red Hat. All rights reserved.