Package pl.grizzlysoftware.util
Class CompositeOnRetroCallExecutionListener
- java.lang.Object
-
- pl.grizzlysoftware.util.CompositeOnRetroCallExecutionListener
-
- All Implemented Interfaces:
OnRetrofitCallExecutionListener
public class CompositeOnRetroCallExecutionListener extends java.lang.Object implements OnRetrofitCallExecutionListener
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Collection<OnRetrofitCallExecutionListener>listeners
-
Constructor Summary
Constructors Constructor Description CompositeOnRetroCallExecutionListener(java.util.Collection<OnRetrofitCallExecutionListener> listeners)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> voidinvokeOnAfterExecution(OnRetrofitCallExecutionListener listener, retrofit2.Call<T> call, retrofit2.Response<T> response)protected <T> voidinvokeOnBeforeExecution(OnRetrofitCallExecutionListener listener, retrofit2.Call<T> call)protected <T> voidinvokeOnExecutionSuccessful(OnRetrofitCallExecutionListener listener, retrofit2.Call<T> call, retrofit2.Response<T> response)<T> voidonAfterExecution(retrofit2.Call<T> call, retrofit2.Response<T> response)<T> voidonBeforeExecution(retrofit2.Call<T> call)<T> voidonExecutionSuccessful(retrofit2.Call<T> call, retrofit2.Response<T> response)
-
-
-
Field Detail
-
listeners
protected final java.util.Collection<OnRetrofitCallExecutionListener> listeners
-
-
Constructor Detail
-
CompositeOnRetroCallExecutionListener
public CompositeOnRetroCallExecutionListener(java.util.Collection<OnRetrofitCallExecutionListener> listeners)
-
-
Method Detail
-
onBeforeExecution
public <T> void onBeforeExecution(retrofit2.Call<T> call)
- Specified by:
onBeforeExecutionin interfaceOnRetrofitCallExecutionListener
-
onAfterExecution
public <T> void onAfterExecution(retrofit2.Call<T> call, retrofit2.Response<T> response)- Specified by:
onAfterExecutionin interfaceOnRetrofitCallExecutionListener
-
onExecutionSuccessful
public <T> void onExecutionSuccessful(retrofit2.Call<T> call, retrofit2.Response<T> response)- Specified by:
onExecutionSuccessfulin interfaceOnRetrofitCallExecutionListener
-
invokeOnBeforeExecution
protected <T> void invokeOnBeforeExecution(OnRetrofitCallExecutionListener listener, retrofit2.Call<T> call)
-
invokeOnAfterExecution
protected <T> void invokeOnAfterExecution(OnRetrofitCallExecutionListener listener, retrofit2.Call<T> call, retrofit2.Response<T> response)
-
invokeOnExecutionSuccessful
protected <T> void invokeOnExecutionSuccessful(OnRetrofitCallExecutionListener listener, retrofit2.Call<T> call, retrofit2.Response<T> response)
-
-