com.genesyslab.platform.commons.connection
Class ConnectionClosedEvent
java.lang.Object
java.util.EventObject
com.genesyslab.platform.commons.connection.ConnectionClosedEvent
- All Implemented Interfaces:
- java.io.Serializable
public class ConnectionClosedEvent
- extends java.util.EventObject
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
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 |
ConnectionClosedEvent
public ConnectionClosedEvent(java.lang.Object source,
java.lang.Throwable cause)
- Constructs an event about closed connection. The source of the
event is connection itself.
- Parameters:
source
- The object on which the Event initially occurred.
ConnectionClosedEvent
public ConnectionClosedEvent(ConnectionClosedEvent event,
java.lang.Throwable cause)
- Constructs same event as passed but with different cause.
- Parameters:
event
- The master event on which the Event initially occurred.unsentBytes
- indicate that some bytes (messages-,addp-) weren't sent.
ConnectionClosedEvent
public ConnectionClosedEvent(java.lang.Object source,
java.lang.Throwable cause,
Connection con)
- Constructs an event about closed connection. The source of the
event is connection itself.
- Parameters:
source
- The object on which the Event initially occurred.unsentBytes
- indicate that some bytes (messages-,addp-) weren't sent.
getCause
public java.lang.Throwable getCause()
hasUnsentBytes
public boolean hasUnsentBytes()
- Checks if some unsent bytes have been ramained.
- Returns:
- true if some unsent bytes have been ramained.
getUnsentBytes
public long getUnsentBytes()
- Gets amount of unsent bytes.
- Returns:
- amount of unsent bytes.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.util.EventObject
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.