@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 Identifiable
public void enqueue(Command command, Command.Priority priority)
public boolean hasCommands()
hasCommands
in interface IOSession
public ByteChannel channel()
public SocketAddress getLocalAddress()
getLocalAddress
in interface IOSession
public SocketAddress getRemoteAddress()
getRemoteAddress
in interface IOSession
public int getEventMask()
getEventMask
in interface IOSession
public void setEventMask(int ops)
setEventMask
in interface IOSession
public void clearEvent(int op)
clearEvent
in interface IOSession
public void close()
public IOSession.Status getStatus()
public void close(CloseMode closeMode)
close
in interface ModalCloseable
public Timeout getSocketTimeout()
getSocketTimeout
in interface SocketModalCloseable
getSocketTimeout
in interface IOSession
public void setSocketTimeout(Timeout timeout)
setSocketTimeout
in interface SocketModalCloseable
setSocketTimeout
in interface IOSession
public int read(ByteBuffer dst) throws IOException
read
in interface ReadableByteChannel
IOException
public int write(ByteBuffer src) throws IOException
write
in interface WritableByteChannel
IOException
public void updateReadTime()
updateReadTime
in interface IOSession
public void updateWriteTime()
updateWriteTime
in interface IOSession
public long getLastReadTime()
getLastReadTime
in interface IOSession
public long getLastWriteTime()
getLastWriteTime
in interface IOSession
public long getLastEventTime()
getLastEventTime
in interface IOSession
public IOEventHandler getHandler()
getHandler
in interface IOSession
public void upgrade(IOEventHandler handler)
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.