BaseEvent Class
- java.
lang. Object - com.
microsoft. azure. storage. BaseEvent
- com.
public class BaseEvent
Represents an event.
Constructor Summary
Constructor | Description |
---|---|
BaseEvent(final OperationContext opContext, final Object connectionObject, final RequestResult requestResult) |
Creates an instance of the class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Object |
getConnectionObject()
Gets a connection object. Currently only is supported as a connection object. |
Operation |
getOpContext()
Gets a context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation. |
Request |
getRequestResult()
Gets a RequestResult object that represents the current request result. |
Constructor Details
BaseEvent
public BaseEvent(final OperationContext opContext, final Object connectionObject, final RequestResult requestResult)
Creates an instance of the class.
Parameters:
java.net.HttpURLConnection
is supported as a connection object.
Method Details
getConnectionObject
public Object getConnectionObject()
Gets a connection object. Currently only is supported as a connection object.
Returns:
Object
for the connection.getOpContext
public OperationContext getOpContext()
Gets a context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.
Returns:
getRequestResult
public RequestResult getRequestResult()
Gets a RequestResult object that represents the current request result.
Returns: