Configuration Platform SDK 7.6 API Reference

com.genesyslab.platform.commons.protocol
Class ChannelClosedEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.genesyslab.platform.commons.protocol.ChannelErrorEvent
          extended bycom.genesyslab.platform.commons.protocol.ChannelClosedEvent
All Implemented Interfaces:
java.io.Serializable

public class ChannelClosedEvent
extends ChannelErrorEvent

See Also:
Serialized Form

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.
 
Method Summary
 ChannelState getPreviousChannelState()
          Return channel state before close operation triggered.
 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 connection
prevState - previous state of channel
Method Detail

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

Configuration Platform SDK 7.6 API Reference

Send comments on this topic.
Copyright © 2006–2008 Genesys Telecommunication Laboratories, Inc. All rights reserved.