public class WebFiberConnection extends java.lang.Object implements WebSocketConnection
| Constructor and Description |
|---|
WebFiberConnection(org.jetlang.fibers.Fiber fiber,
WebSocketConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.jetlang.core.Disposable disposable) |
void |
close()
Attempts to close the underlying socket.
|
void |
dispose() |
void |
execute(java.lang.Runnable command) |
java.net.SocketAddress |
getRemoteAddress() |
HttpRequest |
getRequest() |
boolean |
remove(org.jetlang.core.Disposable disposable) |
org.jetlang.core.Disposable |
schedule(java.lang.Runnable command,
long delay,
java.util.concurrent.TimeUnit unit) |
org.jetlang.core.Disposable |
scheduleAtFixedRate(java.lang.Runnable command,
long initialDelay,
long period,
java.util.concurrent.TimeUnit unit) |
org.jetlang.core.Disposable |
scheduleWithFixedDelay(java.lang.Runnable command,
long initialDelay,
long delay,
java.util.concurrent.TimeUnit unit) |
SendResult |
send(java.lang.String msg)
Non-Blocking send of a text message.
|
SendResult |
sendBinary(byte[] buffer,
int offset,
int length)
Non-Blocking send of a binary message.
|
SendResult |
sendPing(byte[] bytes,
int offset,
int length)
Non-Blocking send
|
SendResult |
sendPong(byte[] bytes,
int offset,
int length)
Non-Blocking send
|
int |
size() |
public WebFiberConnection(org.jetlang.fibers.Fiber fiber,
WebSocketConnection connection)
public HttpRequest getRequest()
getRequest in interface WebSocketConnectionpublic java.net.SocketAddress getRemoteAddress()
getRemoteAddress in interface WebSocketConnectionpublic SendResult send(java.lang.String msg)
WebSocketConnectionsend in interface WebSocketConnectionpublic SendResult sendPong(byte[] bytes, int offset, int length)
WebSocketConnectionsendPong in interface WebSocketConnectionpublic SendResult sendPing(byte[] bytes, int offset, int length)
WebSocketConnectionsendPing in interface WebSocketConnectionpublic SendResult sendBinary(byte[] buffer, int offset, int length)
WebSocketConnectionsendBinary in interface WebSocketConnectionpublic void close()
WebSocketConnectionclose in interface WebSocketConnectionpublic void add(org.jetlang.core.Disposable disposable)
add in interface org.jetlang.core.DisposingExecutorpublic boolean remove(org.jetlang.core.Disposable disposable)
remove in interface org.jetlang.core.DisposingExecutorpublic int size()
size in interface org.jetlang.core.DisposingExecutorpublic void execute(java.lang.Runnable command)
execute in interface java.util.concurrent.Executorpublic org.jetlang.core.Disposable schedule(java.lang.Runnable command,
long delay,
java.util.concurrent.TimeUnit unit)
schedule in interface org.jetlang.core.Schedulerpublic org.jetlang.core.Disposable scheduleWithFixedDelay(java.lang.Runnable command,
long initialDelay,
long delay,
java.util.concurrent.TimeUnit unit)
scheduleWithFixedDelay in interface org.jetlang.core.Schedulerpublic org.jetlang.core.Disposable scheduleAtFixedRate(java.lang.Runnable command,
long initialDelay,
long period,
java.util.concurrent.TimeUnit unit)
scheduleAtFixedRate in interface org.jetlang.core.Schedulerpublic void dispose()
dispose in interface org.jetlang.core.DisposableCopyright © 2018. All Rights Reserved.