public class EventSourceConnectionWrapper extends Object implements EventSourceConnection
| 限定符和类型 | 字段和说明 |
|---|---|
private EventSourceConnection |
connection |
| 构造器和说明 |
|---|
EventSourceConnectionWrapper(EventSourceConnection connection) |
| 限定符和类型 | 方法和说明 |
|---|---|
EventSourceConnectionWrapper |
close() |
Map<String,Object> |
data()
Arbitrary data that can be stored for the lifetime of the connection.
|
Object |
data(String key)
Retrieve data value by key.
|
EventSourceConnectionWrapper |
data(String key,
Object value)
Store data value by key.
|
Set<String> |
dataKeys()
List data keys.
|
void |
execute(Runnable command) |
Executor |
handlerExecutor() |
HttpRequest |
httpRequest() |
EventSourceConnection |
originalControl() |
EventSourceConnectionWrapper |
send(EventSourceMessage message) |
EventSourceConnection |
underlyingControl() |
EventSourceConnectionWrapper |
underlyingControl(EventSourceConnection control) |
private EventSourceConnection connection
public EventSourceConnectionWrapper(EventSourceConnection connection)
public EventSourceConnection underlyingControl()
public EventSourceConnectionWrapper underlyingControl(EventSourceConnection control)
public EventSourceConnection originalControl()
public HttpRequest httpRequest()
httpRequest 在接口中 HttpConnectionpublic EventSourceConnectionWrapper send(EventSourceMessage message)
send 在接口中 EventSourceConnectionpublic EventSourceConnectionWrapper close()
close 在接口中 EventSourceConnectionclose 在接口中 HttpConnectionpublic Map<String,Object> data()
DataHolderdata 在接口中 DataHolderpublic Object data(String key)
DataHolderdata 在接口中 DataHolderDataHolder.data()public EventSourceConnectionWrapper data(String key, Object value)
DataHolderdata 在接口中 DataHolderdata 在接口中 EventSourceConnectionDataHolder.data()public Set<String> dataKeys()
DataHolderdataKeys 在接口中 DataHolderDataHolder.data()public Executor handlerExecutor()
handlerExecutor 在接口中 HttpConnectionCopyright © 2014. All rights reserved.