public class ChannelClosedEvent extends ChannelErrorEvent
cause
Constructor | Description |
---|---|
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.
|
Modifier and Type | Method | Description |
---|---|---|
Endpoint |
getEndpoint() |
Gets the event's endpoint.
|
ChannelState |
getPreviousChannelState() |
Return channel state before close operation triggered.
|
long |
getReceivedMessageCount() |
|
long |
getSentMessagesCount() |
|
long |
getUnsentBytes() |
Gets amount of unsent bytes.
|
boolean |
hasUnsentBytes() |
Checks if some unsent bytes have been ramained.
|
boolean |
isAddpInitializationFailed() |
|
void |
setReceivedMessageCount(long receivedMessageCount) |
|
void |
setSentMessagesCount(long sentMessagesCount) |
|
java.lang.String |
toString() |
getCause
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 channelpublic ChannelState getPreviousChannelState()
public java.lang.String toString()
toString
in class ChannelErrorEvent
public boolean hasUnsentBytes()
public long getUnsentBytes()
public Endpoint getEndpoint()
public long getReceivedMessageCount()
public void setReceivedMessageCount(long receivedMessageCount)
public long getSentMessagesCount()
public void setSentMessagesCount(long sentMessagesCount)
public boolean isAddpInitializationFailed()
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.