BaseEvent Class

  • java.lang.Object
    • com.microsoft.azure.storage.BaseEvent

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.

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.

RequestResult 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:

opContext - An OperationContext object that represents the 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.
connectionObject - Represents a connection object. Currently only java.net.HttpURLConnection is supported as a connection object.
requestResult - A RequestResult object that represents the current request result.

Method Details

getConnectionObject

public Object getConnectionObject()

Gets a connection object. Currently only is supported as a connection object.

Returns:

An 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:

The OperationContext for the current operation.

getRequestResult

public RequestResult getRequestResult()

Gets a RequestResult object that represents the current request result.

Returns:

The RequestResult object for the current request result.

Applies to