public boolean containsAttribute(String key) { return getAttribute(key) != null; }
public long getIdleTimeInMillis(IdleStatus status) { return getIdleTime(status) * 1000L; }
@Override public String toString() { return "(" + getTransportType() + ", R: " + getRemoteAddress() + ", L: " + getLocalAddress() + ", S: " + getServiceAddress() + ')'; } }
public void resumeWrite() { setTrafficMask(getTrafficMask().or(TrafficMask.WRITE)); }
public void write(Object message) { messageQueue.add(message); if (session instanceof BaseIoSession) { ((BaseIoSession) session).increaseReadMessages(); } }
public void resumeRead() { setTrafficMask(getTrafficMask().or(TrafficMask.READ)); }
public void suspendRead() { setTrafficMask(getTrafficMask().and(TrafficMask.READ.not())); }
public Object getAttachment() { return getAttribute(""); }
public void suspendWrite() { setTrafficMask(getTrafficMask().and(TrafficMask.WRITE.not())); }