@Internal public class LoggingIOSession extends Object implements IOSession
IOSession.Status| Constructor and Description |
|---|
LoggingIOSession(IOSession session,
org.slf4j.Logger log,
org.slf4j.Logger wireLog) |
LoggingIOSession(ProtocolIOSession session,
org.slf4j.Logger log) |
| Modifier and Type | Method and Description |
|---|---|
ByteChannel |
channel() |
void |
clearEvent(int op) |
void |
close() |
void |
close(CloseMode closeMode) |
void |
enqueue(Command command,
Command.Priority priority) |
int |
getEventMask() |
IOEventHandler |
getHandler() |
String |
getId() |
long |
getLastEventTime() |
long |
getLastReadTime() |
long |
getLastWriteTime() |
SocketAddress |
getLocalAddress() |
Lock |
getLock() |
SocketAddress |
getRemoteAddress() |
Timeout |
getSocketTimeout() |
IOSession.Status |
getStatus() |
boolean |
hasCommands() |
boolean |
isOpen() |
Command |
poll() |
int |
read(ByteBuffer dst) |
void |
setEvent(int op) |
void |
setEventMask(int ops) |
void |
setSocketTimeout(Timeout timeout) |
String |
toString() |
void |
updateReadTime() |
void |
updateWriteTime() |
void |
upgrade(IOEventHandler handler) |
int |
write(ByteBuffer src) |
public LoggingIOSession(IOSession session, org.slf4j.Logger log, org.slf4j.Logger wireLog)
public LoggingIOSession(ProtocolIOSession session, org.slf4j.Logger log)
public String getId()
getId in interface Identifiablepublic void enqueue(Command command, Command.Priority priority)
public boolean hasCommands()
hasCommands in interface IOSessionpublic ByteChannel channel()
public SocketAddress getLocalAddress()
getLocalAddress in interface IOSessionpublic SocketAddress getRemoteAddress()
getRemoteAddress in interface IOSessionpublic int getEventMask()
getEventMask in interface IOSessionpublic void setEventMask(int ops)
setEventMask in interface IOSessionpublic void clearEvent(int op)
clearEvent in interface IOSessionpublic void close()
public IOSession.Status getStatus()
public void close(CloseMode closeMode)
close in interface ModalCloseablepublic Timeout getSocketTimeout()
getSocketTimeout in interface SocketModalCloseablegetSocketTimeout in interface IOSessionpublic void setSocketTimeout(Timeout timeout)
setSocketTimeout in interface SocketModalCloseablesetSocketTimeout in interface IOSessionpublic int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChannelIOExceptionpublic int write(ByteBuffer src) throws IOException
write in interface WritableByteChannelIOExceptionpublic void updateReadTime()
updateReadTime in interface IOSessionpublic void updateWriteTime()
updateWriteTime in interface IOSessionpublic long getLastReadTime()
getLastReadTime in interface IOSessionpublic long getLastWriteTime()
getLastWriteTime in interface IOSessionpublic long getLastEventTime()
getLastEventTime in interface IOSessionpublic IOEventHandler getHandler()
getHandler in interface IOSessionpublic void upgrade(IOEventHandler handler)
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.