Package com.sas.services.information
Class RepositoryEvent
java.lang.Object
com.sas.services.information.RepositoryEvent
- All Implemented Interfaces:
Serializable
public class RepositoryEvent
extends Object
implements Serializable
This class represents an event that occurred in a
repository while attempting an operation against
it.
- Since:
- 1.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe repository connection was closed by request from a client.static final intReport a disconnect event.static final intReport a reconnect. -
Constructor Summary
ConstructorsConstructorDescriptionRepositoryEvent(RepositoryInterface repository, int event) Create a new RepositoryEvent. -
Method Summary
Modifier and TypeMethodDescriptionintgetEvent()Get the identifier for the event that occurred.Get a handle to the repository that reported the event.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
REPOSITORY_EVENT_DISCONNECT
public static final int REPOSITORY_EVENT_DISCONNECTReport a disconnect event. The connection to the repository was lost, and could not be re-established.- See Also:
-
REPOSITORY_EVENT_RECONNECT
public static final int REPOSITORY_EVENT_RECONNECTReport a reconnect. The connection was lost, but was re-established successfully and the operation completed.- See Also:
-
REPOSITORY_EVENT_CLOSE
public static final int REPOSITORY_EVENT_CLOSEThe repository connection was closed by request from a client.- See Also:
-
-
Constructor Details
-
RepositoryEvent
Create a new RepositoryEvent. This will only be called by a repository to report an event.- Parameters:
repository- The RepositoryInterface this event applies to.event- The type of event that occurred.
-
-
Method Details
-
getRepository
Get a handle to the repository that reported the event.- Returns:
- The RepositoryInterface that had an event.
-
getEvent
public int getEvent()Get the identifier for the event that occurred.- Returns:
- the type of event.
-