com.unboundid.directory.sdk.common.types
Interface CompletedOperationContext

All Superinterfaces:
OperationContext
All Known Subinterfaces:
CompletedProxyOperationContext, CompletedSearchOperationContext

@NotExtensible
@ThreadSafety(level=INTERFACE_NOT_THREADSAFE)
public interface CompletedOperationContext
extends OperationContext

This interface defines a set of methods that may be used to obtain information about an operation for which processing has been completed.


Method Summary
 long getDequeueTime()
          Retrieves the time that the operation was removed from the work queue, if available.
 long getEnqueueTime()
          Retrieves the time that the operation was added to the work queue, if available.
 long getProcessingEndTime()
          Retrieves the time that the worker thread completed processing for the operation.
 long getProcessingStartTime()
          Retrieves the time that the worker thread began processing the operation.
 long getProcessingTimeMillis()
          Retrieves the length of time in milliseconds that the worker thread spent processing the operation.
 long getProcessingTimeNanos()
          Retrieves the length of time in nanoseconds that the worker thread spent processing the operation.
 long getQueueWaitTimeMillis()
          Retrieves the length of time in milliseconds that the operation was held in the work queue before being picked up for processing by a worker thread.
 GenericResult getResult()
          Retrieves information about the result of the operation processing.
 
Methods inherited from interface com.unboundid.directory.sdk.common.types.OperationContext
getAttachment, getAuthorizationDN, getClientContext, getConnectionID, getInternalRootConnection, getInternalRootConnection, getInternalUserConnection, getInternalUserConnection, getMessageID, getOperationID, getOperationType, getRequest, getServerContext, isInternalOperation, isReplicationOperation, isSecure, toString
 

Method Detail

getEnqueueTime

long getEnqueueTime()
Retrieves the time that the operation was added to the work queue, if available. The value returned will be an offset in milliseconds since 12:00 a.m. on January 1, 1970.

Returns:
The time that the operation was added to the work queue, or -1 if the enqueue time is not available.

getDequeueTime

long getDequeueTime()
Retrieves the time that the operation was removed from the work queue, if available. The value returned will be an offset in milliseconds since 12:00 a.m. on January 1, 1970.

Returns:
The time that the operation was removed form the work queue, or -1 if the dequeue time is not available.

getQueueWaitTimeMillis

long getQueueWaitTimeMillis()
Retrieves the length of time in milliseconds that the operation was held in the work queue before being picked up for processing by a worker thread.

Returns:
The length of time in milliseconds that the operation was held in the work queue, or -1 if the queue wait time is not available.

getProcessingStartTime

long getProcessingStartTime()
Retrieves the time that the worker thread began processing the operation. The value returned will be an offset in milliseconds since 12:00 a.m. on January 1, 1970.

Returns:
The time that the worker thread began processing the operation.

getProcessingEndTime

long getProcessingEndTime()
Retrieves the time that the worker thread completed processing for the operation. The value returned will be an offset in milliseconds since 12:00 a.m. on January 1, 1970.

Returns:
The time that the worker thread completed processing for the operation.

getProcessingTimeMillis

long getProcessingTimeMillis()
Retrieves the length of time in milliseconds that the worker thread spent processing the operation.

Returns:
The length of time in milliseconds that the worker thread spent processing the operation.

getProcessingTimeNanos

long getProcessingTimeNanos()
Retrieves the length of time in nanoseconds that the worker thread spent processing the operation.

Returns:
The length of time in nanoseconds that the worker thread spent processing the operation.

getResult

GenericResult getResult()
Retrieves information about the result of the operation processing.

Returns:
Information about the result of the operation processing.