public class CompletedBatchOperation extends Object implements BatchOperationResult<FlowRule>
Constructor and Description |
---|
CompletedBatchOperation(boolean success,
Set<? extends FlowRule> failures,
DeviceId deviceId)
Creates a new batch completion result.
|
CompletedBatchOperation(boolean success,
Set<? extends FlowRule> failures,
Set<Long> failedIds,
DeviceId deviceId)
Creates a new batch completion result.
|
Modifier and Type | Method and Description |
---|---|
DeviceId |
deviceId() |
Set<Long> |
failedIds() |
Set<FlowRule> |
failedItems()
Obtains a set of items which failed.
|
boolean |
isSuccess()
Returns whether the operation was successful.
|
String |
toString() |
public CompletedBatchOperation(boolean success, Set<? extends FlowRule> failures, Set<Long> failedIds, DeviceId deviceId)
success
- indicates whether the completion is successfulfailures
- set of any failures encounteredfailedIds
- (optional) set of failed operation idsdeviceId
- the device this operation completed forpublic CompletedBatchOperation(boolean success, Set<? extends FlowRule> failures, DeviceId deviceId)
success
- indicates whether the completion is successful.failures
- set of any failures encountereddeviceId
- the device this operation completed forpublic boolean isSuccess()
BatchOperationResult
isSuccess
in interface BatchOperationResult<FlowRule>
public Set<FlowRule> failedItems()
BatchOperationResult
failedItems
in interface BatchOperationResult<FlowRule>
public DeviceId deviceId()