com.genesyslab.platform.commons.protocol
Class ChannelClosedEvent
java.lang.Object
java.util.EventObject
com.genesyslab.platform.commons.protocol.ChannelErrorEvent
com.genesyslab.platform.commons.protocol.ChannelClosedEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class ChannelClosedEvent
- extends ChannelErrorEvent
- See Also:
- Serialized Form
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ChannelClosedEvent
public ChannelClosedEvent(Channel source)
- Constructs an Event.
- Parameters:
source
- The object on which the Event initially occurred.
ChannelClosedEvent
public ChannelClosedEvent(Channel source,
java.lang.Throwable cause,
ChannelState prevState)
- Constructs an event about closed channel. The source of the
event is channel itself.
- Parameters:
source
- The object on which the Event initially occurred.cause
- The cause of emergency disconnection.prevState
- previous state of channel
ChannelClosedEvent
public ChannelClosedEvent(Channel source,
ConnectionClosedEvent ccEvent,
ChannelState prevState)
- Constructs an Event.
- Parameters:
source
- The object on which the Event initially occurred.ccEvent
- connection layer event about closed connectionprevState
- previous state of channel
getPreviousChannelState
public ChannelState getPreviousChannelState()
- Return channel state before close operation triggered.
- Returns:
- previous channel state
toString
public java.lang.String toString()
- Overrides:
toString
in class ChannelErrorEvent
Send comments on this topic.
Copyright © 2006–2008 Genesys Telecommunication Laboratories, Inc. All rights reserved.