Class AbstractMultipartRequestCallback<T extends OfHeader>
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.services.AbstractRequestCallback<List<T>>
-
- org.opendaylight.openflowplugin.impl.services.AbstractMultipartRequestCallback<T>
-
- All Implemented Interfaces:
com.google.common.util.concurrent.FutureCallback<OfHeader>
- Direct Known Subclasses:
AbstractMultipartRequestOnTheFlyCallback
,MultiLayerMultipartRequestCallback
,SingleLayerMultipartRequestCallback
public abstract class AbstractMultipartRequestCallback<T extends OfHeader> extends AbstractRequestCallback<List<T>>
-
-
Constructor Summary
Constructors Constructor Description AbstractMultipartRequestCallback(RequestContext<List<T>> context, Class<?> requestType, DeviceContext deviceContext, EventIdentifier eventIdentifier)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract boolean
isMultipart(OfHeader result)
Check if result is multipart.protected abstract boolean
isReqMore(T result)
Check if result requests more multiparts.void
onSuccess(OfHeader result)
-
Methods inherited from class org.opendaylight.openflowplugin.impl.services.AbstractRequestCallback
getEventIdentifier, onFailure, setResult, spyMessage
-
-
-
-
Constructor Detail
-
AbstractMultipartRequestCallback
public AbstractMultipartRequestCallback(RequestContext<List<T>> context, Class<?> requestType, DeviceContext deviceContext, EventIdentifier eventIdentifier)
-
-
Method Detail
-
onSuccess
public void onSuccess(OfHeader result)
-
isMultipart
protected abstract boolean isMultipart(OfHeader result)
Check if result is multipart.- Parameters:
result
- result- Returns:
- true if result is multipart
-
isReqMore
protected abstract boolean isReqMore(T result)
Check if result requests more multiparts.- Parameters:
result
- result- Returns:
- true if result requests more multiparts
-
-