*** This class provides Binary Compatibility only, not Source Compatibility ***
Package com.sas.services.connection
Class ConnectionFactoryEvent
java.lang.Object
com.sas.services.connection.ConnectionFactoryEvent
@SASScope("ALL")
@BinaryCompatibilityOnly
public class ConnectionFactoryEvent
extends Object
A class used to notify factory users of important events such as factory shutdown.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intEvent type indicating factory destruction.static final intEvent type indicating a fatal error which renders the factory unusable.static final intEvent type indicating factory shutdown. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConnectionFactoryEvent(int type) protectedConnectionFactoryEvent(int type, Object info) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
TYPE_SHUTDOWN
public static final int TYPE_SHUTDOWNEvent type indicating factory shutdown.- See Also:
-
TYPE_DESTROYED
public static final int TYPE_DESTROYEDEvent type indicating factory destruction.- See Also:
-
TYPE_FATAL_EXCEPTION
public static final int TYPE_FATAL_EXCEPTIONEvent type indicating a fatal error which renders the factory unusable.- See Also:
-
-
Constructor Details
-
ConnectionFactoryEvent
protected ConnectionFactoryEvent(int type) -
ConnectionFactoryEvent
protected ConnectionFactoryEvent(int type, Object info)
-
-
Method Details
-
getType
public int getType()Get the event type.- Returns:
- the event type
- See Also:
-
getInfo
public Object getInfo()Get the event parameter (if any). Some event types encapsulate additional information. The following list contains details.TYPE_SHUTDOWNnullTYPE_DESTROYEDnullTYPE_FATAL_EXCEPTIONFatalConnectionFactoryException
- Returns:
- the event parameter or
null
-