Class ClientJSONPoint
- java.lang.Object
-
- pro.gravit.launcher.request.websockets.ClientJSONPoint
-
- Direct Known Subclasses:
ClientWebSocketService
public abstract class ClientJSONPoint extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected io.netty.bootstrap.Bootstrapbootstrapprotected io.netty.channel.ChannelchbooleanisClosedprotected intportprotected booleansslprotected WebSocketClientHandlerwebSocketClientHandler
-
Constructor Summary
Constructors Constructor Description ClientJSONPoint(java.lang.String uri)ClientJSONPoint(java.net.URI uri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voideval(java.lang.String text)voidopen()voidopenAsync(java.lang.Runnable onConnect)io.netty.channel.ChannelFuturesend(java.lang.String text)
-
-
-
Field Detail
-
bootstrap
protected final io.netty.bootstrap.Bootstrap bootstrap
-
isClosed
public boolean isClosed
-
ch
protected io.netty.channel.Channel ch
-
webSocketClientHandler
protected WebSocketClientHandler webSocketClientHandler
-
ssl
protected boolean ssl
-
port
protected int port
-
-
Method Detail
-
open
public void open() throws java.lang.Exception- Throws:
java.lang.Exception
-
openAsync
public void openAsync(java.lang.Runnable onConnect)
-
send
public io.netty.channel.ChannelFuture send(java.lang.String text)
-
close
public void close() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
eval
public void eval(java.lang.String text)
-
-