com.ibm.cics.core.comm
Class AbstractConnectable

java.lang.Object
  extended by com.ibm.cics.core.comm.AbstractConnectable
All Implemented Interfaces:
IConnectable

public abstract class AbstractConnectable
extends java.lang.Object
implements IConnectable

Abstract superclass for IConnectable implementations.


Constructor Summary
AbstractConnectable()
           
 
Method Summary
 void addListener(IConnectableListener connectableListener)
          Deprecated. 
 void disconnect()
          Disconnects the underlying IConnection that is being used to provide this service.
 IConnection getConnection()
          Retrieves the IConnection being used by this IConnectable.
 boolean isConnected()
          Determines whether or not the services provided by this IConnectable are currently available.
 void removeListener(IConnectableListener listener)
          Deprecated. No longer used.
 void setConnection(IConnection connection)
          Sets the underlying IConnection to be used by this IConnectable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.cics.core.comm.IConnectable
getConnectionType
 

Constructor Detail

AbstractConnectable

public AbstractConnectable()
Method Detail

setConnection

public void setConnection(IConnection connection)
Description copied from interface: IConnectable
Sets the underlying IConnection to be used by this IConnectable. The connection should be supplied in a connected state.

Specified by:
setConnection in interface IConnectable

getConnection

public IConnection getConnection()
Description copied from interface: IConnectable
Retrieves the IConnection being used by this IConnectable.

Specified by:
getConnection in interface IConnectable
Returns:
an IConnectable or null

isConnected

public boolean isConnected()
Description copied from interface: IConnectable
Determines whether or not the services provided by this IConnectable are currently available.

Specified by:
isConnected in interface IConnectable
Returns:
true if services are available, or false if not.

disconnect

public void disconnect()
                throws ConnectionException
Description copied from interface: IConnectable
Disconnects the underlying IConnection that is being used to provide this service.

Specified by:
disconnect in interface IConnectable
Throws:
ConnectionException - if there is a problem when disconnecting.

addListener

@Deprecated
public void addListener(IConnectableListener connectableListener)
Deprecated. 

Specified by:
addListener in interface IConnectable

removeListener

@Deprecated
public void removeListener(IConnectableListener listener)
Deprecated. No longer used.



Copyright © 2013 IBM Corp. All Rights Reserved.