Skip to content

Commit

Permalink
update method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
terrywbrady committed Apr 6, 2018
1 parent 81bcaa4 commit 362b81d
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import org.dspace.services.model.CacheConfig;
import org.dspace.services.model.CacheConfig.CacheScope;
import org.dspace.services.model.RequestInterceptor;
import org.dspace.services.model.Session;
import org.dspace.utils.servicemanager.ProviderHolder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -619,7 +620,8 @@ public int compare(Cache o1, Cache o2) {

private class CachingServiceRequestInterceptor implements RequestInterceptor {

public void onStart(String requestId) {
@Override
public void onStart(String requestId, Session session) {
if (requestId != null) {
Map<String, MapCache> requestCaches = requestCachesMap.get(requestId);
if (requestCaches == null) {
Expand All @@ -629,7 +631,8 @@ public void onStart(String requestId) {
}
}

public void onEnd(String requestId, boolean succeeded, Exception failure) {
@Override
public void onEnd(String requestId, Session session, boolean succeeded, Exception failure) {
if (requestId != null) {
requestCachesMap.remove(requestId);
}
Expand All @@ -638,5 +641,6 @@ public void onEnd(String requestId, boolean succeeded, Exception failure) {
public int getOrder() {
return 1;
}

}
}

0 comments on commit 362b81d

Please sign in to comment.