Platform SDK Java 8.5 API Reference

com.genesyslab.platform.commons.connection
Class ConnectionClosedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.genesyslab.platform.commons.connection.ConnectionClosedEvent
All Implemented Interfaces:
java.io.Serializable

public class ConnectionClosedEvent
extends java.util.EventObject

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ConnectionClosedEvent(ConnectionClosedEvent event, java.lang.Throwable cause)
          Constructs same event as passed but with different cause.
ConnectionClosedEvent(java.lang.Object source, java.lang.Throwable cause)
          Constructs an event about closed connection.
ConnectionClosedEvent(java.lang.Object source, java.lang.Throwable cause, Connection con)
          Constructs an event about closed connection.
 
Method Summary
 java.lang.Throwable getCause()
           
 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 java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.