Package org.somda.sdc.glue.consumer
Interface SetServiceAccess
-
- All Implemented Interfaces:
public interface SetServiceAccessAPI to invoke set operations.
-
-
Method Summary
Modifier and Type Method Description abstract <T extends AbstractSet, V extends AbstractSetResponse> ListenableFuture<ScoTransaction<V>>invoke(T setRequest, Class<V> responseClass)Invokes a set operation. abstract <T extends AbstractSet, V extends AbstractSetResponse> ListenableFuture<ScoTransaction<V>>invoke(T setRequest, @Nullable() Consumer<Pair<OperationInvokedReport.ReportPart, MdibVersion>> reportListener, Class<V> responseClass)Invokes a set operation. -
-
Method Detail
-
invoke
abstract <T extends AbstractSet, V extends AbstractSetResponse> ListenableFuture<ScoTransaction<V>> invoke(T setRequest, Class<V> responseClass)
Invokes a set operation.
If there is no service to access the SCO, this function returns with a cancelled future.
- Parameters:
setRequest- the set request to send to the remote peer.responseClass- the expected response class (due to type erasure cannot be designated generically.- Returns:
a future to listen for the SCO transaction (which includes the set response).
-
invoke
abstract <T extends AbstractSet, V extends AbstractSetResponse> ListenableFuture<ScoTransaction<V>> invoke(T setRequest, @Nullable() Consumer<Pair<OperationInvokedReport.ReportPart, MdibVersion>> reportListener, Class<V> responseClass)
Invokes a set operation.
If there is no service to access the SCO, this function returns with a cancelled future.
- Parameters:
setRequest- the set request to send to the remote peer.reportListener- a callback function that accepts reports being received after invocation.responseClass- the expected response class (due to type erasure cannot be designated generically.- Returns:
a future to listen for the SCO transaction (which includes the set response).
-
-
-
-