Package com.streambase.liveview.client
Class ConnectionClosedEvent
- java.lang.Object
 - 
- java.util.EventObject
 - 
- com.streambase.liveview.client.AbstractConnectionEvent
 - 
- com.streambase.liveview.client.ConnectionClosedEvent
 
 
 
 
- 
- All Implemented Interfaces:
 Serializable
public final class ConnectionClosedEvent extends AbstractConnectionEvent
Event dispatched when aLiveViewConnectioncloses.- See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
- 
Fields inherited from class java.util.EventObject
source 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ConnectionClosedEvent(Object source, LiveViewConnection connection) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispatch(ConnectionListener listener)Dispatches this event to the listenerLiveViewConnectiongetConnection()Get the connection that was closed- 
Methods inherited from class java.util.EventObject
getSource, toString 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
ConnectionClosedEvent
public ConnectionClosedEvent(Object source, LiveViewConnection connection)
- Parameters:
 source- the source of the eventconnection- the connection that was closed
 
 - 
 
- 
Method Detail
- 
getConnection
public LiveViewConnection getConnection()
Get the connection that was closed- Returns:
 - the connection
 
 
- 
dispatch
public void dispatch(ConnectionListener listener)
Dispatches this event to the listener- Specified by:
 dispatchin classAbstractConnectionEvent- Parameters:
 listener- the connection listener
 
 - 
 
 -