public interface ProtocolContext<T>
Modifier and Type | Method and Description |
---|---|
String |
address() |
T |
async() |
T |
close() |
T |
closeIf(boolean condition) |
long |
connId() |
ChannelHolder |
createHolder() |
T |
done() |
InetSocketAddress |
getAddress() |
RapidoidHelper |
helper() |
org.rapidoidx.buffer.Buf |
input() |
boolean |
isAsync() |
boolean |
isClosed() |
boolean |
isClosing() |
boolean |
isInitial() |
void |
log(String msg) |
Channel |
mode(int mode) |
Channel |
nextOp(int nextOp) |
Channel |
nextWrite() |
org.rapidoidx.buffer.Buf |
output() |
String |
readln() |
String |
readN(int count) |
T |
restart() |
T |
send() |
ConnState |
state() |
void |
waitUntilClosing() |
T |
write(byte[] bytes) |
T |
write(byte[] bytes,
int offset,
int length) |
T |
write(ByteBuffer buf) |
T |
write(File file) |
T |
write(String s) |
T |
writeln(String s) |
String address()
InetSocketAddress getAddress()
long connId()
boolean isAsync()
T close()
T closeIf(boolean condition)
boolean isClosing()
boolean isClosed()
void waitUntilClosing()
void log(String msg)
Channel nextOp(int nextOp)
Channel nextWrite()
Channel mode(int mode)
boolean isInitial()
T restart()
T write(byte[] bytes)
T write(byte[] bytes, int offset, int length)
T write(ByteBuffer buf)
T send()
T async()
T done()
String readln()
String readN(int count)
org.rapidoidx.buffer.Buf input()
org.rapidoidx.buffer.Buf output()
RapidoidHelper helper()
ConnState state()
ChannelHolder createHolder()
Copyright © 2014–2015 Nikolche Mihajlovski and contributors. All rights reserved.