|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.genesyslab.platform.commons.protocol.ChannelErrorEvent
com.genesyslab.platform.commons.protocol.ChannelClosedEvent
public class ChannelClosedEvent
Field Summary |
---|
Fields inherited from class com.genesyslab.platform.commons.protocol.ChannelErrorEvent |
---|
cause |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
ChannelClosedEvent(Channel source)
Constructs an Event. |
|
ChannelClosedEvent(Channel source,
ConnectionClosedEvent ccEvent,
ChannelState prevState)
Constructs an Event. |
|
ChannelClosedEvent(Channel source,
java.lang.Throwable cause,
ChannelState prevState)
Constructs an event about closed channel. |
|
ChannelClosedEvent(Channel source,
java.lang.Throwable cause,
ChannelState prevState,
Endpoint endpoint)
Constructs an event about closed channel. |
Method Summary | |
---|---|
Endpoint |
getEndpoint()
Gets the event's endpoint. |
ChannelState |
getPreviousChannelState()
Return channel state before close operation triggered. |
long |
getUnsentBytes()
Gets amount of unsent bytes. |
boolean |
hasUnsentBytes()
Checks if some unsent bytes have been ramained. |
java.lang.String |
toString()
|
Methods inherited from class com.genesyslab.platform.commons.protocol.ChannelErrorEvent |
---|
getCause |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ChannelClosedEvent(Channel source)
source
- The object on which the Event initially occurred.public ChannelClosedEvent(Channel source, java.lang.Throwable cause, ChannelState prevState, Endpoint endpoint)
source
- The object on which the Event initially occurred.cause
- The cause of emergency disconnection.prevState
- previous state of channelendpoint
- of the event.public ChannelClosedEvent(Channel source, java.lang.Throwable cause, ChannelState prevState)
source
- The object on which the Event initially occurred.cause
- The cause of emergency disconnection.prevState
- previous state of channelpublic ChannelClosedEvent(Channel source, ConnectionClosedEvent ccEvent, ChannelState prevState)
source
- The object on which the Event initially occurred.ccEvent
- connection layer event about closed connectionprevState
- previous state of channelMethod Detail |
---|
public ChannelState getPreviousChannelState()
public java.lang.String toString()
toString
in class ChannelErrorEvent
public boolean hasUnsentBytes()
public long getUnsentBytes()
public Endpoint getEndpoint()
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |