*/
package org.opendaylight.openflowplugin.impl.services;
+import com.google.common.base.Function;
+
import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.GroupConvertor;
import org.opendaylight.yang.gen.v1.urn.opendaylight.group.service.rev130918.AddGroupInput;
import org.opendaylight.yang.gen.v1.urn.opendaylight.group.service.rev130918.AddGroupOutput;
@Override
public Future<RpcResult<AddGroupOutput>> addGroup(final AddGroupInput input) {
- return ServiceCallProcessingUtil.<AddGroupOutput>handleServiceCall(rpcContext, PRIMARY_CONNECTION,
- provideWaitTime(), new Function<Void>() {
+ return this.<AddGroupOutput, Void> handleServiceCall( PRIMARY_CONNECTION,
+ new Function<BigInteger,Future<RpcResult<Void>>>() {
@Override
public Future<RpcResult<Void>> apply(final BigInteger IDConnection) {
@Override
public Future<RpcResult<UpdateGroupOutput>> updateGroup(final UpdateGroupInput input) {
- return ServiceCallProcessingUtil.<UpdateGroupOutput>handleServiceCall(rpcContext, PRIMARY_CONNECTION,
- provideWaitTime(), new Function<Void>() {
+ return this.<UpdateGroupOutput, Void> handleServiceCall(PRIMARY_CONNECTION,
+ new Function<BigInteger, Future<RpcResult<Void>>>() {
@Override
public Future<RpcResult<Void>> apply(final BigInteger IDConnection) {
@Override
public Future<RpcResult<RemoveGroupOutput>> removeGroup(final RemoveGroupInput input) {
- return ServiceCallProcessingUtil.<RemoveGroupOutput>handleServiceCall(rpcContext, PRIMARY_CONNECTION,
- provideWaitTime(), new Function<Void>() {
+ return this.<RemoveGroupOutput, Void> handleServiceCall(PRIMARY_CONNECTION,
+ new Function<BigInteger, Future<RpcResult<Void>>>() {
@Override
public Future<RpcResult<Void>> apply(final BigInteger IDConnection) {